Starting a tool window as a tab

Docking/MDI for Windows Forms Forum

Posted 12 years ago by Anthony Martin
Version: 2.0.0083
Avatar
I have a TreeView, DockManager and a single tool window. As the TreeView's nodes are selected the contents of the tool window are changed. I have the option where the user can right click on a tab and say "Open in new tab" (similar to Firefox) and a new tab is supppose to open. The user can then dock the tabs where ever he wants. If the user selects "Open in a new tab" again, it will open the tab in the current ToolWindow.

My question is, how do I have the new tool window be a tabbed window of the current ToolWindow? I want it to be automatically tabbed when it opens. Similar to dragging two tool windows on top of each other.

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Tool windows will display tabs (when in a dockable state) if they are "attached".

If you execute ToolWindow.DockTo and specify a target of another tool window with an action of Attach, you can attach your new tool window to the target tool window.

Hope that helps!


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.