Creation Parameters
- atom parent
- integer id
- sequence text
- integer x [= -1]
- integer y [= -1]
- integer cx [= -1]
- integer cy [= -1]
- atom style [= 0]
Style choices:
- wxBU_LEFT Left-justifies the label. WIN32 only.
- wxBU_TOP Aligns the label to the top of the button. WIN32 only.
- wxBU_RIGHT Right-justifies the bitmap label. WIN32 only.
- wxBU_BOTTOM 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.