.\" This is a wxWidgets manpage page generated from the XML docs .TH wxRadioBox 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxRadioBox \- A group of radio buttons .SH DESCRIPTION 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. .SH "PARENTS" wxControl wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/radiobox.h .SH MEMBERS .SS wxRadioBox () Default constructor. .SS wxRadioBox (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& point = wxDefaultPositionconst wxSize& size = wxDefaultSizeint n = 0const wxString choices[] = NULLint majorDimension = 0long style = wxRA_SPECIFY_COLSconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``radioBox") .SS wxRadioBox (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& pointconst wxSize& sizeconst wxArrayString& choicesint majorDimension = 0long style = wxRA_SPECIFY_COLSconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``radioBox") .SS ~wxRadioBox () Destructor, destroying the radiobox item. .SS bool Create (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& point = wxDefaultPositionconst wxSize& size = wxDefaultSizeint n = 0const wxString choices[] = NULLint majorDimension = 0long style = wxRA_SPECIFY_COLSconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``radioBox") .SS bool Create (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& pointconst wxSize& sizeconst wxArrayString& choicesint majorDimension = 0long style = wxRA_SPECIFY_COLSconst wxValidator& validator = wxDefaultValidatorconst wxString& name = ``radioBox") Creates the radiobox for two-step construction. See wxRadioBox::wxRadioBox for further details. .SS virtual bool Enable (bool enable = true) Enables or disables the entire radiobox. .SS virtual bool Enable (int nbool enable = true) Enables or disables an individual button in the radiobox. .SS int FindString (const wxString& string) Finds a button matching the given string, returning the position if found, or -1 if not found. .SS int GetCount () Returns the number of items in the radiobox. .SS wxString GetLabel () Returns the radiobox label. .SS int GetSelection () Returns the zero-based position of the selected button. .SS wxString GetStringSelection () Returns the selected string. .SS wxString GetString (int n) Returns the label for the button at the given position. .SS int Number () 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. .SS void SetLabel (const wxString& label) Sets the radiobox label. .SS void SetSelection (int n) Sets a button by passing the desired string position. This does not cause a wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted. .SS void SetStringSelection (const wxString& string) Sets the selection to a button by passing the desired string. This does not cause a wxEVT_COMMAND_RADIOBOX_SELECTED event to get emitted. .SS virtual bool Show (const bool show = true) Shows or hides the entire radiobox. .SS virtual bool Show (int itemconst bool show = true) Shows or hides individual buttons. .SH "WINDOW STYLES" .SS wxRA_SPECIFY_ROWS wxRA_SPECIFY_ROWS .SS wxRA_SPECIFY_COLS wxRA_SPECIFY_COLS .SS wxRA_USE_CHECKBOX wxRA_USE_CHECKBOX .SH EVENTS .SS EVT_RADIOBOX(id, func) Process a wxEVT_COMMAND_RADIOBOX_SELECTED event, when a radiobutton is clicked. .SH "SEE ALSO" wxControl wxWindow wxEvtHandler wxObject Event handling overview wxRadioButton , wxCheckBox .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.