Posted 18 years ago by Alfred Chan
Avatar
Can you programmatically set the size of a ToolWindow? I am programmatically adding and docking ToolWindows. I would like to resize the ToolWindows relative each other.

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Alfred,

You can change the tool window's DockedSize property before you programmatically call the DockTo method. That will set the "desired" size and depending on the docking situation and space available, it will try to dock at that size.

However, changing it while docked will not do anything. The reason is that tool windows might be nested down many levels of dock containers deep so programmatically resizing a tool window can be a very complex operation. We do have it on our TODO list to try and implement in the future though.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.