How to determine if ToolWindows are docked with tabs?

Docking/MDI for Windows Forms Forum

Posted 16 years ago by shark92651
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?


Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
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 16 years ago by shark92651
That works quite well, thanks.
The latest build of this product (v23.1.2) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.