Images Method

Measurement Studio User Interface

Images Method

Syntax

Object.Images (Item)

Return Type

CWImage

The specified image.

Applies To

CWKnob

CWSlide

Purpose

Provides access to the CWImage objects in the CWKnob or CWSlide control.

Remarks

Use the Images method to perform operations like loading custom bitmaps and adjusting blink or animation speeds.

For the CWSlide control, the following images are available: "Caption", "Background", "Border", "Interior", "Frame", "Increment Button", "Decrement Button", "Pointer-1", and so on.

For the CWKnob control, the following images are available: "Caption", "Background", "Border", "Interior", "Frame", "Pointer-1", etc.

Parameters

Item As Variant

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

Example

'Set the blink speed of the caption
CWSlide1.Images("Caption").BlinkInterval = cwSpeedFast

'Set the speed of the caption using an index instead
'Of the string "Caption"
CWSlide1.Images(1).BlinkInterval = cwSpeedFast