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 <emphasis>normal.png</emphasis> and <emphasis>rollover.png</emphasis>). 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 <emphasis>toggle</emphasis> property is set), and checks whether the button is <emphasis>on</emphasis> or <emphasis>off</emphasis>.

void setOn ( bool on )

Set toggle button on or off

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