wxToggleButton(3erl) | Erlang Module Definition | wxToggleButton(3erl) |
wxToggleButton - Functions for wxToggleButton class
wxToggleButton is a button that stays pressed when clicked by the user. In other words, it is similar to wxCheckBox in functionality but looks like a wxButton.
Since wxWidgets version 2.9.0 this control emits an update UI event.
You can see wxToggleButton in action in page_samples_widgets.
See: wxCheckBox, wxButton, wxBitmapToggleButton (not implemented in wx)
This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler
wxWidgets docs: wxToggleButton
Event types emitted from this class: command_togglebutton_clicked
wxToggleButton() = wx:wx_object()
new() -> wxToggleButton()
Default constructor.
new(Parent, Id, Label) -> wxToggleButton()
Types:
new(Parent, Id, Label, Options :: [Option]) -> wxToggleButton()
Types:
Constructor, creating and showing a toggle button.
See: create/5, wxValidator (not implemented in wx)
destroy(This :: wxToggleButton()) -> ok
Destructor, destroying the toggle button.
create(This, Parent, Id, Label) -> boolean()
Types:
create(This, Parent, Id, Label, Options :: [Option]) -> boolean()
Types:
Creates the toggle button for two-step construction.
See new/4 for details.
getValue(This) -> boolean()
Types:
Gets the state of the toggle button.
Return: Returns true if it is pressed, false otherwise.
setValue(This, State) -> ok
Types:
Sets the toggle button to the given state.
This does not cause a EVT_TOGGLEBUTTON event to be emitted.
wx 2.2.1 | wxWidgets team. |