wxRadioButtonA radio button item is a button which usually denotes one of several mutually exclusive options. It has a text label next to a (usually) round button. You can create a group of mutually-exclusive radio buttons by specifying wxRB_GROUP for the first in the group. The group ends when another radio button group is created, or there are no more radio buttons. Derived from
wxControl Include files <wx/radiobut.h> Window styles
See also window styles overview. Event handling
See also Event handling overview, wxRadioBox, wxCheckBox Members
wxRadioButton::wxRadioButton
wxRadioButton::wxRadioButtonwxRadioButton() Default constructor. wxRadioButton(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "radioButton") Constructor, creating and showing a radio button. Parameters parent
id
label
pos
size
style
validator
name
See also wxRadioButton::Create, wxValidator
wxRadioButton::~wxRadioButtonvoid ~wxRadioButton() Destructor, destroying the radio button item.
wxRadioButton::Createbool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "radioButton") Creates the choice for two-step construction. See wxRadioButton::wxRadioButton for further details.
wxRadioButton::GetValuebool GetValue() const Returns true if the radio button is depressed, false otherwise.
wxRadioButton::SetValuevoid SetValue(const bool value) Sets the radio button to selected or deselected status. This does not cause a wxEVT_COMMAND_RADIOBUTTON_SELECTED event to get emitted. Parameters value
|