A radio box item is used to select one of number of mutually exclusive choices. It is displayed as a vertical column or horizontal row of labelled buttons.
Derived from
wxControl
wxWindow
wxEvtHandler
wxObject
Include files
<wx/radiobox.h>
Window styles
See also window styles overview.
Event handling
EVT_RADIOBOX(id, func) | Process a wxEVT_COMMAND_RADIOBOX_SELECTED event, when a radiobutton is clicked. |
---|
See also
Event handling overview, wxRadioButton, wxCheckBox
Default constructor.
Constructor, creating and showing a radiobox.
Parameters
See also
wxRadioBox::Create, wxValidator
wxPython での注意点: The wxRadioBox constructor in wxPython reduces the n and choices arguments are to a single argument, which is a list of strings.
wxPerl での注意点: In wxPerl there is just an array reference in place of n and choices.
Destructor, destroying the radiobox item.
Creates the radiobox for two-step construction. See wxRadioBox::wxRadioBox for further details.
Enables or disables the entire radiobox.
Enables or disables an individual button in the radiobox.
Parameters
wxPython での注意点: In place of a single overloaded method name, wxPython implements the following methods:
2cm
Enable(flag) | Enables or disables the entire radiobox. |
EnableItem(n, flag) | Enables or disables an individual button in the radiobox. |
See also
int FindString(const wxString& string) const
Finds a button matching the given string, returning the position if found, or -1 if not found.
Parameters
Returns the number of items in the radiobox.
Returns the radiobox label.
Parameters
See also
wxPython での注意点: In place of a single overloaded method name, wxPython implements the following methods:
2cm
GetLabel() | Returns the radiobox label. |
GetItemLabel(n) | Returns the label for the given button. |
Returns the zero-based position of the selected button.
wxString GetStringSelection(void) const
Returns the selected string.
wxString GetString(int n) const
Returns the label for the button at the given position.
Parameters
Obsolescence note: This method is obsolete and was replaced with GetCount, please use the new method in the new code. This method is only available if wxWidgets was compiled with WXWIN_COMPATIBILITY_2_2 defined and will disappear completely in future versions.
Returns the number of buttons in the radiobox.
Sets the radiobox label.
Parameters
wxPython での注意点: In place of a single overloaded method name, wxPython implements the following methods:
2cm
SetLabel(string) | Sets the radiobox label. |
SetItemLabel(n, string) | Sets a label for a radio button. |
Sets a button by passing the desired string position. This does not cause a wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted.
Parameters
Sets the selection to a button by passing the desired string. This does not cause a wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted.
Parameters
Shows or hides the entire radiobox.
Shows or hides individual buttons.
Parameters
Return value
true if the box or item has been shown or hidden or false if nothing was done because it already was in the requested state.
See also
wxPython での注意点: In place of a single overloaded method name, wxPython implements the following methods:
2cm
Show(flag) | Shows or hides the entire radiobox. |
ShowItem(n, flag) | Shows or hides individual buttons. |