Posted 20 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
Typically, the size of docked ToolWindows do not change when you resize the container hosting DockManager. This is also how Visual Studio performs, and works well when you have an MDI client area.
I'm working with the new InnerFill feature, and I'd like to make all the ToolWindow sizes relative to the size of the container. I'm creating a form like the Object Browser ToolWindow in Visual Studio, so it serves as a good example.
When you resize the Object Browser, the three panels are all resized as well. Float the Object Browser window and set it up so that the Objects tree and the Members tree are both about half the width of the window. Now change the width of the window and you'll see that these two trees maintain their size as being about 50% of the container width.
My Object Browser ToolWindow has it's own DockManager that is used to create ToolWindows for each of the three panels in Object Browser (Objects, Members, and Description). When I try the above scenario of setting the two tree controls to the same width and then resizing, the tree on the left stays the same size and the one on the right continues to get larger.
Is there any way to make the ToolWindows "grow" and "shrink" with the container?
I'm working with the new InnerFill feature, and I'd like to make all the ToolWindow sizes relative to the size of the container. I'm creating a form like the Object Browser ToolWindow in Visual Studio, so it serves as a good example.
When you resize the Object Browser, the three panels are all resized as well. Float the Object Browser window and set it up so that the Objects tree and the Members tree are both about half the width of the window. Now change the width of the window and you'll see that these two trees maintain their size as being about 50% of the container width.
My Object Browser ToolWindow has it's own DockManager that is used to create ToolWindows for each of the three panels in Object Browser (Objects, Members, and Description). When I try the above scenario of setting the two tree controls to the same width and then resizing, the tree on the left stays the same size and the one on the right continues to get larger.
Is there any way to make the ToolWindows "grow" and "shrink" with the container?