Button image

image = “text

image0

This defines the name of a graphic image to be used to represent the button, such as the Open File icon illustrated here. This feature is restricted to push buttons. The “text” is the pathname of the file containing the image, and may contain environment variables. The image’s own size is used, unless height and/or width are specified, in which case the image is scaled to the dimensions provided. Scaling an image may have the effect of distorting it.

A transparent colour can be defined, allowing the window background to show through.

The WS_PLAIN style flag creates an image button with no border or shadow, giving it a flat appearance. See Button style.

Standard buttons with native look and feel are used for non-image buttons.

Note that the backslash character “\” is an escape character and cannot be used with its usual meaning in a pathname. Use the forward slash character “/” instead.

The image file may be on a remote server.


EXAMPLES

image = "/images/uparrow.bmp"
image = "$IMAGES/tick.wmf"

RELATED TOPICS

Buttons