label is the string that is printed on the button.
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.
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!;