InsertPane Method (AStatusBar)

Inserts a status bar pane object and returns a reference to the created object.

Syntax

[ pPane = ] Object.InsertPane ( vKey )

The InsertPane method syntax has the following parts:

 

Name

Type

Description

Object

AStatusBar

AStatusBar object

pPane

AStatusBarPane

A specific pane of the AStatusBar object.

vKey

Val Variant

The parameter which specifies the AStatusBarPane object. This can be a position (index) or a string (pane name).

Comments

Creates an AStatusBarPane object and inserts the newly created object before the specified pane. If vKey is omitted or out-of-range the newly created pane will be added to the end of the panes collection.

Example

The following example will insert a pane before the existing "Time" pane:

Pane=sbr.InsertPane("Time")

Applies to

AStatusBar

See Also

Clear, MovePane, Panes, RemovePane