Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Hide tab when unpin the pane and display pane another way
posted

Hi,

I've been working for a few month on an application using Progress OpenEdge and the Infragistics UltraControls. It consists in a windows Form with 2 UltraExplorerBars, both left-docked (with UltraDockManager), which are used for a  2 levels menu.

The first one (ultraExplorerBarMainMenu) is pinned, its style is OutlookNavigationPane and it is used to construct the second level of the menu in the 2nd UltraExplorerBar (ultraExplorerBarMenu) by adding groups and items. This 2nd UltraExplorerBar is unpinned (because there is not enough room to display it permanently).

Here are the properties of these objects:

/*  */

/* ultraExplorerBarMainMenu */
/*  */
ultraExplorerBarMainMenu:Cursor = System.Windows.Forms.Cursors:Hand.
ultraExplorerBarMainMenu:Dock = System.Windows.Forms.DockStyle:Left.
ultraExplorerBarMainMenu:Font = NEW System.Drawing.Font("Arial Black", 8.25, System.Drawing.FontStyle:Regular, System.Drawing.GraphicsUnit:Point, System.Convert:ToByte(0)).
ultraExplorerBarMainMenu:GroupSettings:Style = Infragistics.Win.UltraWinExplorerBar.GroupStyle:ControlContainer.
ultraExplorerBarMainMenu:Location = NEW System.Drawing.Point(0, 18).
ultraExplorerBarMainMenu:Name = "ultraExplorerBarMainMenu".
ultraExplorerBarMainMenu:NavigationAllowGroupReorder = FALSE.
ultraExplorerBarMainMenu:NavigationCurrentGroupAreaHeaderVisible = FALSE.
ultraExplorerBarMainMenu:NavigationOverflowButtonAreaVisible = FALSE.
ultraExplorerBarMainMenu:ShowDefaultContextMenu = FALSE.
ultraExplorerBarMainMenu:Size = NEW System.Drawing.Size(35, 686).
ultraExplorerBarMainMenu:Style = Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarStyle:OutlookNavigationPane.
ultraExplorerBarMainMenu:TabIndex = 20.
ultraExplorerBarMainMenu:Click:Subscribe(ultraExplorerBarMainMenu_Click).
ultraExplorerBarMainMenu:SelectedGroupChanged:Subscribe(SelectionnerAppli).
ultraExplorerBarMainMenu:NavigationPaneFlyoutDisplayed:Subscribe(ultraExplorerBarMainMenu_NavigationPaneFlyoutDisplayed).
/*  */
/* UltraExplorerBarMenu */
/*  */
UltraExplorerBarMenu:Cursor = System.Windows.Forms.Cursors:Hand.
UltraExplorerBarMenu:Font = NEW System.Drawing.Font("Arial", 8.25, System.Drawing.FontStyle:Regular, System.Drawing.GraphicsUnit:Point, System.Convert:ToByte(0)).
UltraExplorerBarMenu:ItemSettings:UseDefaultImage = Infragistics.Win.DefaultableBoolean:False.
UltraExplorerBarMenu:Location = NEW System.Drawing.Point(0, 0).
UltraExplorerBarMenu:Name = "UltraExplorerBarMenu".
UltraExplorerBarMenu:Size = NEW System.Drawing.Size(95, 704).
UltraExplorerBarMenu:Style = Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarStyle:Toolbox.
UltraExplorerBarMenu:TabIndex = 22.
UltraExplorerBarMenu:ItemDropped:Subscribe(ultraExplorerBarMenu_ItemDropped).
UltraExplorerBarMenu:ItemDragOver:Subscribe(UltraExplorerBarMenu_ItemDragOver).
UltraExplorerBarMenu:ItemRemoved:Subscribe(UltraExplorerBarMenu_ItemRemoved).
UltraExplorerBarMenu:ItemClick:Subscribe(UltraExplorerBarMenu_ItemDoubleClick).
/*  */

And here is the result:

 

 

So when the mouse is over the tab of the 2nd menu (highlighted in yellow above), this menu is flyied out (right screenshot).

What I would like to do but I can't find how, is to hide the tab of the 2nd menu (highlighted in yellow above), and fly out the menu when the mouse is over the object highlighted in red (instead of the tab created when I unpinned the menu).

I've managed to hide the tab with the property UnpinnedTabStyle of the UltraDockManager set to Wizard, but there is perhaps a simplier way to do it. But I don't know how I can detect the mouseover of the object in red (the NavigationPaneClickArea ?), and I've tried to use the method ShowAll() of then UltraDockManager to display the 2nd menu but it doesn't work.

I hope you will be able to understand what I'm talking about, with my poor english, and help me.

Regards.

Olivier FALCY.