I use UltraDockManager to manage MDI child forms in a parent form. I would like to hide tab caption when it stays in the parent form, however, if I drag or dock (in floating) from the group, I will like to show the caption. So later I can click the caption to return it back to the group or drag it around. Because without the caption it can not do anothing. Please show me some code snippet what I should do in which event handler, and I believe I should set DockableControlPane.Settings.ShowCaption to true or false to show or hide the caption, correct?
This thread is over 6 years old and frankly, I'm not sure I even understand the question. You might want to just start a new thread on the forums here and explain exactly what you want to achieve and I'm sure we can help you out.
I have the same issue and I don't see the actual solution. According to Boris, this has been fixed, but what is the actual fixed? I am having this problem with version 2019.2. Is there a setting to automatically show the caption of a pane when the pane is floated or it is the only one in the dock area?
Hello Boris,
I'm sorry I didn't see anything in the original post that indicated a Break/Fix or feature update. It simply looked like someone was requesting a code sample to achieve a similar / same behavior that I was. I am already using 12.1 and I have found the Settings.ShowCaption properties but I had a little trouble understanding when the dockmanager is displaying tabs vs a caption for a DockAreaPane vs a caption for a DockableControlPane (when all settings are in default state). I have a relatively simple project in which there is only one DockAreaPane so I have managed to find the correct combination of events & conditions to achieve the desired behavior, however I am getting ready to help integrate my solution into another project that will have multiple DockAreaPanes that are built / destroyed on the fly and I'm not sure I have enough of an understanding to make this work there (my application is also creating / destroying the one DockAreaPane as needed but only needs one at a time).
Our basic desired action is that within any given DockAreaPane:
When only one DockingControlPane is present - show the ControlPane Caption
When two or more Control Panes are present - show the Tabs and no captions
And
When the Control Pane is undocked / Floating - show the Control Pane Caption
Right now I am setting the DockAreaPane.ShowCaption to False and the DockableControlPane.ShowCaption to True upon their creation and using the _AfterDockChange event, the _PaneHidden event, and my internal _AddPane event to all call the following:
Private Sub _setControlAreaPaneCaptions() Dim dockpane As DockAreaPane For Each controlpane As DockableControlPane In dockmanager.ControlPanes dockpane = controlpane.DockAreaPane If controlpane.DockedState = DockedState.Docked AndAlso Not dockpane Is Nothing AndAlso dockpane.Panes.Count <> 1 Then controlpane.Settings.ShowCaption = DefaultableBoolean.False Else controlpane.Settings.ShowCaption = DefaultableBoolean.True End If Next End Sub
This has proved successful thus far in my single DockArea application and I think it will translate to the multi DockArea one as well, now I'm just trying to figure out how to limit where the user can re-dock the floating panes to get them back into the existing DockAreaPane and to be visible.
Thanks for your assistance, if you see anything I should / could do different then please let me know. Also if you have and better documentation / samples on the re-docking behavior and how to limit docking positions I would be most appreciative.
Thanks
Steve
Hello n2dfire,
This was fixed from v11.2.20112.2004 and above, and v11.1.20111.2050 and above.
Please let me know if these fix your issue or if you have any other questions.
Thank you for choosing Infragistics!
Providing public solutions would be nicer as other people often find these threads looking for the same answers.
I know it's old but I would like to do this as well if anyone could provide some insight.