![]() |
OffImages()








Public Function |
Declared in: NiButton.h |
Declaration
CNiImage OffImages( long imageIndex);
Description
Gets the image object corresponding to the Off state of the CNiButton control that is associated with the specified part of the CNiButton control.
Notes:
1. You can use the OffImages function to perform operations like loading custom bitmaps and adjusting blink or animation speeds for the button control in the Off state. For example,
CNiButton1.OffImages(1).BlinkInterval = CNiImage::SpeedFast;
causes the button caption to blink quickly when the control is in the Off state. The caption's BlinkInterval property remains unchanged in the On state.
2. Use the OnImages function to control images in the On state.
Parameters
long imageIndex
Specifies the index of the image object to return. The list below includes valid image indices.
- CNiButton::1 - caption
- CNiButton::2 - background
- CNiButton::3 - on Text
- CNiButton::4 - off Text
- CNiButton::5 - image