OnImages Method
Syntax
CWButton.OnImages (Item)
Return Type
The specified image.
Purpose
Provides access to the CWImage objects in the CWButton control in the On state.
Remarks
Use the OnImages method to perform operations like loading custom bitmaps and adjusting blink or animation speeds for the On state. Use the OffImages method to access images in the Off 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