Resizing Panes
This section covers the following topics:
Setting the Resize Mode and the Minimum Size of a Pane
When you resize a paned container, the panes it holds are resized according to their resizing mode. A pane can have one of three resizing modes:
-
Fixed—Fixed panes are never resized.
-
Elastic—Elastic panes are always resized.
-
Resizable—Resizable panes are resized only if their paned container does not include elastic panes.
To set the resize mode of a pane, use
You can also provide a minimum size for a pane. To set a minimum size for a pane, use
The resize mode and the minimum size of a pane can be defined for both the horizontal and vertical directions.
Resizing Panes With Sliders
Slider Pane
Using Automatic Slider Creation
By default, a paned container automatically creates slider panes between resizable and elastic panes.
Slider panes are actually created only after you call the member function updatePanes. This is very important as it affects the index number originally assigned to the panes. For example, if you create an empty container to which you add two resizable panes, their indexes will be 0 and 1, respectively. After calling updatePanes, the indexes of the resizable panes will be 0 and 2, the slider pane being assigned the index number 1. See Retrieving Panes.
When the paned container creates automatic slider panes, it calls
If you do not want that slider panes be created automatically, you can call