How to determine if ToolWindows are docked with tabs?

Docking/MDI for Windows Forms Forum

Posted 17 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 17 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 17 years ago by shark92651
Avatar
That works quite well, thanks.
The latest build of this product (v24.1.1) was released 26 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.