CommandBars, DockingPane and popup menus |
Post Reply |
Author | |
blazej
Groupie Joined: 09 February 2005 Location: Canada Status: Offline Points: 53 |
Post Options
Thanks(0)
Posted: 14 February 2005 at 3:01pm |
Hi
I use both CommandBars and DockingPane together. I have a bunch of dockable panes. I would like to display context menus (popups) in various panes. Now, I have one CommandBars object living in MainFrame. Should I add a separate CommandBars to each pane? Can I actually do it? Or should I expose the CommandBars from the main frame for all panes to use? What's the "best usage"? Thanks in advance Michal Blazejczyk |
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
You can actually use both methods. Where possible, I find it easier to expose the CommandBars object from the MainFrame. I say this because you already have the 'Execute' and 'Update' event handlers established. If you find that your docking pane is more of a stand-alone item that wouldn't benefit from sharing the CommandBars on the MainFrame, you can create your own instance of CommandBars on that pane. As a general rule, you can create multiple instances of CommandBars and DockingPane so long as two instances of the same object are not at the same child level of the same container. If you ever need multiple instances of the CommandBars or DockingPane on the same container, place them in PictureBox controls (for Visual Basic) or Panels (for C#). |
|
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 |