Starting a tool window as a tab

Docking/MDI for Windows Forms Forum

Posted 17 years ago by Anthony Martin
Version: 2.0.83
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 17 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.