Posted 19 years ago by mike wall
I need to control the width of the ActiproSoftware.UIStudio.Dock.ToolWindow when it is painted.

I have this to achieve 3 tabs in one window, but I get three layered, How do get the tabs to show, this seemed to work in teh sample project, I assume there is some other setting I missed...

this.toolWindow1.Controls.AddRange(new System.Windows.Forms.Control[] {

Thanks for your help.

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA

To control the size of a tool window, do this:
1) Set the DockedSize property of the ToolWindow
2) Call the DockTo method of the ToolWindow to dock it

Tool windows can contain one or more child controls. If you want each child control in it's own "tab", then you need to make a tool window for each child control. After that, dock the first tool window with the size you want at the position you want. Next dock the second tool window to the first one using an Attach dock operation. Same thing for the third tool window.

For an example, look at our sample project's DockForm.fileCreate3ToolWindowsAttachedMenuItem_Click event handler. It shows something very similar.

Actipro Software Support

The latest build of this product (v24.1.0) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.