Field_SetImage()

Examples


The Field_SetImage() function specifies the default image to use for a push button or button drop list field.

Syntax

Field_SetImage(field, image_type, index)

Parameters

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:

[spacer]

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.

Return value

A boolean indicating whether the image was changed. True indicates the image was changed, while false indicates it was not.

Comments

You must use the redraw statement to display the images specified.


Documentation Feedback