Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Sharing Configuration between CommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sharing Configuration between CommandBars

 Post Reply Post Reply
Author
Message
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: Sharing Configuration between CommandBars
    Posted: 09 December 2003 at 8:45am

Hello,

I am developing a VisualBasic 6 application using CommandBars and DockingPane.  I want to use CommandBars within the main application window as well as within each docking pane.  Additionally, I want the end user to be able to use the 'Customize' feature to apply any pre-configured control to any instance of the CommandBars.

The problem I encountered is that I have to have a CommandBars control on each form where I want to use command bars (i.e. the main form and each form used in a docking pane).  To enable the customization feature, I create the XCB file and loaded it for each form.  At this point, everything works well.

The problem comes when the use tries to customize the CommandBars.  Specifically, using custom accelerators.  Since all CommandBars are loaded from the XCB file, each one starts with the same pre-defined accelerators.  When the user changes an accelerator, it is only changed for that instance of the CommandBars control (i.e. changed in the docking pane but not the main window).

Ideally, it would be nice to create a single instance of the CommandBars control and allow CommandBars from it to be docked in the other panes.  If that's not a feasible option, using some form of Global Properties would allow each instance of the CommandBars control to share certain information (i.e. Accelerators).  At the very least, is there an event (or could you expose one) that indicates when the user has customized a CommandBar so that I can programatically update the other instances?

I appreciate your feedback.

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.172 seconds.