Print Page | Close Window

Create RibbonBar at run-time

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=6424
Printed Date: 19 June 2025 at 5:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Create RibbonBar at run-time
Posted By: Dev69
Subject: Create RibbonBar at run-time
Date 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



Replies:
Posted By: Oleg
Date Posted: 15 February 2007 at 4:45am
Hello,
Try CommandBarsframe control instead.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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