AutoSize Property (AStatusBarPane)

Returns or sets the width of the object.

Syntax

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.

Where

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.

Comments

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.

Example

The following statement changes the width of the pane to allow stretching:

sbrp1.Panes("Prompt").AutoSize=asbrpAutoSizeStretch

Applies to

AStatusBarPane

See Also

Alignment, BorderStyle, MinWidth, Style