Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [POWERBUILDER] CommandBars Ribbon bar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[POWERBUILDER] CommandBars Ribbon bar?

 Post Reply Post Reply
Author
Message
Obelix View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Obelix Quote  Post ReplyReply Direct Link To This Post Topic: [POWERBUILDER] CommandBars Ribbon bar?
    Posted: 23 October 2008 at 7:41am
Hello,
 
I am testing how CommandBars works and how i can install CommandBars in our application.
 
Is there a example or something like that how i can install CommandBars in a powerbuilder application?
 
Things that i have done:
 
  1. Insert the CommandBars activex control and named ole_commandbutton.
  2. I placed this code in the open event for the window:


OLEOBJECT ole_ribbenbar
ole_commandbutton.object.VisualTheme = 6
ole_ribbenbar = ole_commandbutton.object.AddRibbonBar("Test");
ole_ribbenbar.EnableDocking(64)
ole_ribbenbar.EnableFrameTheme()

 
Greetings,
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2008 at 10:41am
Hi,
I did the same that you as well and had no results when I tried to run it. Maybe it will need code the resize event or something... if you could fix it please say me me how you did...
thanks... and good luck
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 8:23am
If you try with the CommandBars frame control you should see something 
Back to Top
Obelix View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Obelix Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2008 at 3:27am
ole_commandbutton.object.AttachToWindow(parent.handle)
 
is the trick!
Back to Top
gregoryfisher View Drop Down
Newbie
Newbie
Avatar

Joined: 03 December 2008
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote gregoryfisher Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2008 at 7:44pm
Hi.  I am trying to implement the commandbar with frame in PowerBuilder 11.5.  We have successfully designed a ribbonBar in the Codejock design tool and pulled it into the OLE container that contains the Active X.  We cannot get it to become the title bar of the window or make it part of the window.  Is this even possible in PowerBuilder?  I have tried the code snippets here but they do not work. 
 
Also whenever you programmatically manipulate the control you lose the .xcb definition.  When I try to programmatically load the .xcb file using
 
ole_1.object.LoadFromFile("c:\development\codejock\Form1.xcb")
 
I get a system error saying unknown function, yet the documentation specifies that this is an available function.  I have tried a few flavors of calling this method including the following:
 
ole_1.object.CommandBars.LoadFromFile("c:\development\codejock\Form1.xcb")
 
ole_1.object.CommandBarsFrame.LoadFromFile("c:\development\codejock\Form1.xcb")
 
Any help, guidance or suggestions is greatly appreciated.  thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.