Style Property (Panel Object)

       

Returns or sets the style of a StatusBar control's Panel object.

Syntax

object.Style [= number]

The Style property syntax has these parts:

Part Description
object An object expression that evaluates to a Panel object.
number An integer or constant specifying the style of the Panel, as described in Settings.

Settings

The settings for number are:

Constant Value Description
sbrText 0 (Default). Text and/or a bitmap. Set text with the Text property.
sbrCaps 1 Caps Lock key. Displays the letters CAPS in bold when Caps Lock is enabled, and dimmed when disabled.
sbrNum 2 Number Lock. Displays the letters NUM in bold when the number lock key is enabled, and dimmed when disabled.
sbrIns 3 Insert key. Displays the letters INS in bold when the insert key is enabled, and dimmed when disabled.
sbrScrl 4 Scroll Lock key. Displays the letters SCRL in bold when scroll lock is enabled, and dimmed when disabled.
sbrTime 5 Time. Displays the current time in the system format.
sbrDate 6 Date. Displays the current date in the system format.
sbrKana 7 Kana. displays the letters KANA in bold when scroll lock is enabled, and dimmed when disabled.

Remarks

If you set the Style property to any style except 0 (text and bitmap), any text set with the Text property will not display unless the Style property is set to 0.

The Style property can be set as Panel objects are added to a collection. See the Add method for more information.

Note   The StatusBar control also has a Style property. When the StatusBar control's Style is set to Simple, the control displays only one large panel and its string (set with the SimpleText property).