Print Page | Close Window

How to use the customize menu with Catego

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=1488
Printed Date: 04 November 2024 at 4:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use the customize menu with Catego
Posted By: Jens4
Subject: How to use the customize menu with Catego
Date Posted: 03 December 2004 at 6:54am

I am use the commandbar by dynamicly addin the menu from my VB6 code, but I can figure out how to get the commans show up in the customize commandbar dialog, when the user want to reorganize the menu og toolbars.

I think it has somthing to do withe the Category property.... do any body have an sample the use dynamic menu and toolbar , and also enabled customize toolbars

 

Hope for help...

Jens

 




Replies:
Posted By: SuperMario
Date Posted: 03 December 2004 at 6:57am
Controls that are displayed in the customize dialog must be added to the CommandBars.DesignerControls collection in the CommandBars_Customization event.  This event is fired when the customize dialog is opened.  See CommandBars MDISample.


Posted By: Jens4
Date Posted: 06 December 2004 at 3:22am

Isn’t is possible to load the DesignerControls anywhere else….. I would be smart to load the DesginerControls in the same place where the program load/create the toolbars/menubars….

 

 

/Jens



Posted By: SuperMario
Date Posted: 06 December 2004 at 6:57am
Yes, I don't see why you couldn't do that.


Posted By: Jens4
Date Posted: 06 December 2004 at 7:01am

Because I got the Run-time error 91 "object variable or with block variable not set"

whenever I try to add a new DesignerControls

frmMain.CommandBars.DesignerControls.Add xType, lKey, scaption

 

/Jens



Posted By: SuperMario
Date Posted: 06 December 2004 at 7:18am
MDI Sample?  Try:

fMainForm.CommandBars.DesignerControls.Add.......

Where are you adding them?  When you add, make sure they are in one continuous block of code, so you must add all controls to the deignercontrols at the same time or they won't all show up.



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