Returns or sets the width of the object.
Object.AutoSize [ = enAutoSize ]
The AutoSize property syntax has the following parts:
Name |
Type |
Description |
Object |
AStatusBarPane |
AStatusBarPane object |
enAutoSize |
enumAStatusBarPaneAutoSize |
An integer specifying the width of the object. |
enumAStatusBarPaneAutoSize can be one of the following:
Name |
Value |
Description |
asbrpAutoSizeNone |
0 * |
None. No autosizing occurs. The width of the pane is exactly the same as the Width property |
asbrpAutoSizeStretch |
1 |
Stretch. When the parent form resizes and there is extra space available, all panes with the Stretch setting divide up the space and grow accordingly. However, the panes' width never falls below that specified by the MinWidth property. |
asbrpAutoSizeContents |
2 |
Contents. The pane is resized to fit its contents. However, the width will never fall below the width specified by the MinWidth property. |
Pane objects with the Contents style have precedence over those with the Stretch style. This means that a Stretch-style Pane is shortened if a Pane with the Contents style requires that space.
The following statement changes the width of the pane to allow stretching:
sbrp1.Panes("Prompt").AutoSize=asbrpAutoSizeStretch