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
70
Show pane caption when floating pane or it is the only pane in a DockAreaPane
posted

I am hiding the caption of a pane by setting DocakAreaPane.DefaultPaneSettings.ShowCaption = DefaultableBoolean.False.  Hiding the caption gives me more real state to work with.  The issue I am having is that whenever there is only one pane in a DockAreaPane there is no tab shown for the pane.  This prevents me from dragging, hiding, or floating it.  When there are multiple panes in the DockAreaPane, I see the tabs and I am able to float them.  When I float a pane, I have the same issue.  There is no caption and there is no tab.  So, I am not able to move the pane or docked it back.  Is there a setting that prevents hiding the pane tab or that will automatically show the caption whenever there is only one pane in a DockAreaPane?  Hope the description makes sense.

Thanks.

  • 29105
    Offline posted

    Hello Jose, 

    Thank you for contacting Infragistics. Removing a panes caption should only be done sparingly and managed through the AfterDockChange event. The caption area is used interaction and there isn't an auto setting for when there is only one tab pane left for example. We based our dock manager from Visual Studio which doesn't let you interact with panes either without using the caption area. You can hook the after dock change event and check how many panes are in the panes collection and the current dock state. Let me know if you have any questions.

    eg.

    ultraDockManager1_AfterDockChange( INPUT sender AS System.Object, INPUT e AS Infragistics.Win.UltraWinDock.PaneEventArgs ):

    IF e:Pane:DockedState:ToString() = "Floating" THEN
    e:Pane:Settings:ShowCaption = Infragistics.Win.DefaultableBoolean:TRUE.
    ELSE
    e:Pane:Settings:ShowCaption = Infragistics.Win.DefaultableBoolean:FALSE.

    RETURN.

    END METHOD.