Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Create RibbonBar at run-time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Create RibbonBar at run-time

 Post Reply Post Reply
Author
Message
Dev69 View Drop Down
Groupie
Groupie


Joined: 15 February 2007
Location: France
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dev69 Quote  Post ReplyReply Direct Link To This Post Topic: Create RibbonBar at run-time
    Posted: 15 February 2007 at 4:16am
Is it able to create a ribbonbar at run-time ?
I use Delphi and try the following code :

constructor TRibbonBar.Create (AOwner: TForm);
begin
  CommandBars1 := TCommandBars.CreateParented(AOwner.Handle);

  CommandBars1.OnCustomization := CommandBars1Customization;
  CommandBars1.OnUpdate := CommandBars1Update;
  CommandBars1.OnExecute := CommandBars1Execute;
  .../...
end;

When i click on the Customization menuitem, it crashes. (ie if i click on About menu)
It seams that some initialization is missing

Thanks for Help
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2007 at 4:45am
Hello,
Try CommandBarsframe control instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.045 seconds.