Print Page | Close Window

CommandBars, DockingPane and popup menus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1785
Printed Date: 23 April 2024 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars, DockingPane and popup menus
Posted By: blazej
Subject: CommandBars, DockingPane and popup menus
Date 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



Replies:
Posted By: Boyd
Date Posted: 14 February 2005 at 3:07pm

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#).




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