Button Methods (inherits Object)

void setText ( string text )

Set button text

Set the button text to the specified value.

string getText ( )

Get button text

Returns the text currently displayed by the button

void setPixmaps ( string normal, string rollover )

Set button images

This method sets the normal and rollover (ie., mouse-over) images for the button. The arguments are the names of the images (eg., like normal.png and rollover.png). Note that button text overlays any images.

void setToolTip ( string text )

Set tooltip

Set the tooltip that is displayed when the user hovers the mouse over the button.

bool isOn ( )

Test if button is on

This method is used with toggle buttons (ie., buttons where the toggle property is set), and checks whether the button is on or off.

void setOn ( bool on )

Set toggle button on or off

This method is used with toggle buttons (ie., buttons where the toggle property is set), and sets the button to the on or off state.