![]() |
How to use the customize menu with Catego |
Post Reply ![]() |
Author | |
Jens4 ![]() Groupie ![]() ![]() Joined: 11 June 2004 Location: Denmark Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Jens4 ![]() Groupie ![]() ![]() Joined: 11 June 2004 Location: Denmark Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Yes, I don't see why you couldn't do that.
|
|
![]() |
|
Jens4 ![]() Groupie ![]() ![]() Joined: 11 June 2004 Location: Denmark Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
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 |