Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to use the customize menu with Catego
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to use the customize menu with Catego

 Post Reply Post Reply
Author
Message
Jens4 View Drop Down
Groupie
Groupie
Avatar

Joined: 11 June 2004
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jens4 Quote  Post ReplyReply Direct Link To This Post Topic: How to use the customize menu with Catego
    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

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Jens4 View Drop Down
Groupie
Groupie
Avatar

Joined: 11 June 2004
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jens4 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2004 at 6:57am
Yes, I don't see why you couldn't do that.
Back to Top
Jens4 View Drop Down
Groupie
Groupie
Avatar

Joined: 11 June 2004
Location: Denmark
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jens4 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.