OffImages Method

Measurement Studio User Interface

OffImages Method

Syntax

CWButton.OffImages (Item)

Return Type

CWImage

The specified image.

Purpose

Provides access to the CWImage objects in the CWButton control in the Off state.

Remarks

Use the OffImages method to perform operations such as loading custom bitmaps and adjusting blink or animation speeds for the Off state. Use the OnImages method to access images in the On state.

For the CWButton control, the following images are available: "Caption", "Background", "On Text", "Off Text", "Image".

Parameters

Item As Variant

The string of the CWImage or the number of the CWImage (starting at 1).

Example

'Make the caption blink quickly when the button is On
CWButton1.OnImages("Caption").BlinkInterval = cwSpeedFast

'Make the caption blink quickly when the button is On
'Use the index of the image instead of the name
CWButton1.OnImages(1).BlinkInterval = cwSpeedFast

See Also

OnImages