How to determine if ToolWindows are docked with tabs?

Docking/MDI for Windows Forms Forum

Posted 12 years ago by shark92651
Avatar
I want to hide the titlebar of my ToolWindows if they are docked in such a way that tabs are displaying - i.e. when two or more toolwindows are grouped together. I think it is redundant to show the titlebar since the tab already displays an appropriate name.

I am using the DockManager_ToolWindowDragged even to iterate through all the ToolWindows in order to set the HasTitleBar property but I cannot find any way to determine if the toolwindow is grouped into tabs with other toolwindows - how do I determine this?

Thanks,
David

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If the parent ToolWindowContainer (ToolWindow.ToolWindowContainer) has more tool window in it, they are tabbed. Note that not all states use a ToolWindowContainer so do a null check before looking at it.


Actipro Software Support

Posted 12 years ago by shark92651
Avatar
That works quite well, thanks.
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.