| Left-justifies the label. WIN32 only.
| | Aligns the label to the top of the button. WIN32 only.
| | Right-justifies the bitmap label. WIN32 only.
| | Aligns the label to the bottom of the button. WIN32 only.
| |
To trap a button click, use the wxEVT_COMMAND_BUTTON_CLICKED event:
ex:
procedure on_click( atom this, atom event_type, atom id, atom event )
-- do stuff here
end procedure
set_event_handler( my_button, get_id(my_button), wxEVT_COMMAND_BUTTON_CLICKED,
routine_id("on_click"))
Changes the label on a button.