Print Page | Close Window

[POWERBUILDER] CommandBars Ribbon bar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12509
Printed Date: 16 May 2024 at 11:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [POWERBUILDER] CommandBars Ribbon bar?
Posted By: Obelix
Subject: [POWERBUILDER] CommandBars Ribbon bar?
Date 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,



Replies:
Posted By: maza23
Date 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


Posted By: maza23
Date Posted: 20 November 2008 at 8:23am
If you try with the CommandBars frame control you should see something 


Posted By: Obelix
Date Posted: 24 November 2008 at 3:27am
ole_commandbutton.object.AttachToWindow(parent.handle)
 
is the trick!


Posted By: gregoryfisher
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net