![]()  | 
 
[POWERBUILDER] CommandBars Ribbon bar? | 
 
    Post Reply  
   | 
  
| Author | |
   
   Obelix  
   
   Newbie  
   Joined: 23 October 2008 Status: Offline Points: 6  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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: 
 
 
 Greetings, 
    | 
 |
![]()  | 
 |
   
   maza23  
   
   Newbie  
   Joined: 18 November 2008 Status: Offline Points: 9  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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 ![]()  | 
 |
![]()  | 
 |
   
   maza23  
   
   Newbie  
   Joined: 18 November 2008 Status: Offline Points: 9  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 November 2008 at 8:23am | 
 
| 
   
    
   If you try with the CommandBars frame control you should see something  
   
   
    | 
 |
![]()  | 
 |
   
   Obelix  
   
   Newbie  
   Joined: 23 October 2008 Status: Offline Points: 6  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 November 2008 at 3:27am | 
 
| 
   
    
   ole_commandbutton.object.AttachToWindow(parent.handle)
 
   
  is the trick! 
    | 
 |
![]()  | 
 |
   
   gregoryfisher  
   
   Newbie  
   Joined: 03 December 2008 Location: United States Status: Offline Points: 1  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  ![]()  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |