The Field_SetImage() function specifies the default image to use for a push button or button drop list field.
Field_SetImage(field, image_type, index)
• field – The push button or button drop list whose image will be set.
• image_type – An integer specifying which image type to use. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
IMAGE_UP |
The button up image |
IMAGE_DOWN |
The button down image |
IMAGE_OVER |
The mouse-over image |
• index – An integer specifying which image to use. This value corresponds to the item number of the image listed in the Button Items window.
A boolean indicating whether the image was changed. True indicates the image was changed, while false indicates it was not.
You must use the redraw statement to display the images specified.