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.

custom control on a status FrameBar

Thread ID:

Created:

Updated:

Platform:

Replies:

18265 Aug 26,2004 01:55 PM Aug 27,2004 11:59 AM Windows Forms 3
loading
Tags: Tools
Nathan Allan
Asked On August 26, 2004 01:55 PM

I am using FrameBarManager, and would like to put a control of my choosing in the status bar. Is there a way to do this? I tried using FrameBarManager.GetCommandBar passing the statusbar''s frame bar, but the method returned null (perhaps because I was calling it on an MDI child form and the status bar is merged with the parent?). My thought was that I could perhaps manually add my control to the Controls collection of the CommandBar underlying the status frame bar. Thanks in advance, -Nate

Administrator [Syncfusion]
Replied On August 26, 2004 02:41 PM

Hi Nathan, You could achieve this functionality by using the detached CommandBar associated with the MainFrameBarManager as shown in the code below : this.commandBar1.HideDropDownButton = true; this.commandBar1.OccupyFullRow = true; this.commandBar1.DockState = CommandBarDockState.Bottom; You could now host any desired control in the COmmandBar. Please refer to the sample attached here that demonstrates this, and let me know if this works for you. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Nathan Allan
Replied On August 26, 2004 11:26 PM

>You could achieve this functionality by using the detached CommandBar associated with the MainFrameBarManager as shown in the code below : That would throw out the benefits of the frame bars which I am making extensive use of; particularly MDI merging (each of the child forms has a custom status bar). Perhaps I will explore the posibility of subclassing my own BarItem. Is this feasable, or does the frame bars infrastructure make assumptions that preclude this? -Nate

Administrator [Syncfusion]
Replied On August 27, 2004 11:59 AM

Hi Nathan, Thanks for the update. The XPMenus.Bar can host objects of type BarItems only (and not any other Controls). Note that the BarItems are not of type Control. The CommandBar does offer this functionality but does not support bar-merging. So I am afraid, in the present form of XPMenus framework, it is not possible to have a XPMenus.Bar that would support both merging as well host any control in it. As a workaround you could explictly handle the merging behavior. Place the controls that would be present in the status bar of the MDI child in a panel and place it in the MDI parent''s status bar. Show/hide the panel when the MDI child is opened/closed. Please refer to the test sample attached that illustrates this, and let me know if this works for you. Thanks for choosing Syncfusion products. Regards, Guru Patwal 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.

;