We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

XPMenus & MDI Forms

Thread ID:

Created:

Updated:

Platform:

Replies:

26439 Mar 22,2005 08:44 PM Mar 23,2005 02:36 PM Windows Forms 3
loading
Tags: Tools
Lori S. Pearsall
Asked On March 22, 2005 08:44 PM

I have an MDI application that can display two types of forms - I''ll call them ChildA & ChildB. ChildA & ChildB have some toolbars that are, by default, not set to be visible. However, I allow menu customization so the user can turn them on. My issue is that when ChildA is the active window, ChildB''s toolbars are visible but empty (not buttons). I''ve done WriteLine''s and I can''t find any property on either the MDI parent or the child forms that indicate that these child toolbars are visible. I even look at bar.BarStyle and it doesn''t have the BarStyle.Visible bit set when the toolbars added via user customization ARE ACTUALLY visible. So, basically, I''d like to make ChildB''s toolbars invisible when ChildA is the active form and vice versa. How do I do this??

Administrator [Syncfusion]
Replied On March 23, 2005 11:03 AM

Hi Lori, The Bar class is not a true Control, so it doesn''t have information on it''s display state. To access the Control that corresponds to a Bar, please use MainFrameBarManager.GetBarControl(). This method will return a Control that will have various properties that allow you to detect and modify it''s appearance, including the Visible property you''re looking for. Regards, Gregory Austin Syncfusion Inc.

Lori S. Pearsall
Replied On March 23, 2005 02:02 PM

Hi Gregory, Thanks for the info. The Visible property and the SetBarVisibility method not only controls whether the bar is currently visible, it also affects the persisted state as well. Is there a separate property that tells me what the current persisted state is that wouldn''t be affected by me setting Visible on and off? Or, is that something that I''ll need to record myself? Also, there seems to be a lot of methods and properties that aren''t documented in the Class Reference document regarding XPMenus!! (I using Version 2.1.0.9).

Administrator [Syncfusion]
Replied On March 23, 2005 02:36 PM

Hi Lori, XPMenus has limited support for directly controlling the persistance of customization information. Keeping track of the information yourself would be the best course of action. Regarding the documentation, we''re in the process of improving it and expect to have it ready for the next release. Regards, Gregory Austin Syncfusion Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;