<<<<<<<<<<<<<<<<<

ui_button(ui) HP Widgets ui_button(ui)

NAME

ui_button

SUPERCLASS

ui

DESCRIPTION

The ui_button object provides an interface to the HP XwpushbuttonWidgetClass.

INSTANCE VARIABLES

action is name of the actions object associated with the button. When the button is selected, a tick! message will be sent to the actions object.

label is the string that is printed on the button.

MESSAGES

action? returns the value of the action instance variable.

action= sets the value of the action instance variable.

add_select_callback is a private method. It is used internally to attach a callback when the button is created.

create! creates the widget.

label? returns the value of the label instance variable.

label= sets the value of the label instance variable.

EXAMPLE

/* create ui and main window */

ui create!;

ui_control_panel new: my_panel parent= ui create! ;

/* add exit button */

ui_button new: ebutton parent= my_panel label= "exit" action= bye_bye create!;

actions new: bye_bye tick_actions= "ui exit!";

/* run it! */

ui on! start!;

SEE ALSO

ui, ui_static_raster, ui_toggle, ui_control_panel, ui_row_column


Please send comments and suggestions to
consult@rpi.edu