wxButton

wxButton
A button is a control that contains a text string, and is one of the most common elements of a GUI. It may be placed on a dialog box or panel, or indeed almost any other window.

Creation Parameters

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"))
Functions/Procedures
Supertopics
Subtopics

wxButton

[proc]
set_button_label
( atom button, sequence label_text )

Category: wxButton

Changes the label on a button.