OnPictureColor Property (ASwitch)

Returns or sets the color of the Picture in the On state of the object.

Syntax

Object.OnPictureColor [ = dwOnPictureColor ]

The OnPictureColor property syntax has the following parts:

 

Name

Type

Description

Object

ASwitch

ASwitch control

dwOnPictureColor

AColor

An integer specifying the color of the Picture in the On state of the control.

Comments

The colors are specified by their RGB values. The default is Light gray except for the LED style, which will have a red color. This property can be set at design time and is read-only at run time.

Example

The following statement returns the ASwitch OnPictureColor:

dwsw1OnPictureColor = sw1.OnPictureColor

Applies to

ASwitch

See Also

OffPicture, OffPictureColor, OnPicture