1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxRadioButton}}\label{wxradiobutton}
|
|
|
|
|
|
|
|
A 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.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxControl}{wxcontrol}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
|
|
|
\wxheading{Window styles}
|
|
|
|
|
|
|
|
There are no specific styles for this class.
|
|
|
|
|
|
|
|
See also \helpref{window styles overview}{windowstyles}.
|
|
|
|
|
1998-08-06 15:42:06 -04:00
|
|
|
\wxheading{Event handling}
|
|
|
|
|
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf EVT\_RADIOBUTTON(id, func)}}{Process a wxEVT\_COMMAND\_RADIOBUTTON\_SELECTED event,
|
|
|
|
when the radiobutton is clicked.}
|
|
|
|
\end{twocollist}
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Event handling overview}{eventhandlingoverview}, \helpref{wxRadioBox}{wxradiobox},\rtfsp
|
|
|
|
\helpref{wxCheckBox}{wxcheckbox}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxRadioButton::wxRadioButton}\label{wxradiobuttonconstr}
|
|
|
|
|
|
|
|
\func{}{wxRadioButton}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
1998-06-14 08:11:50 -04:00
|
|
|
\func{}{wxRadioButton}{\param{wxWindow*}{ parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp
|
1998-05-20 10:25:30 -04:00
|
|
|
\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
|
1998-06-14 08:11:50 -04:00
|
|
|
\param{long}{ style = 0},\rtfsp
|
1998-05-20 10:25:30 -04:00
|
|
|
\param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp
|
|
|
|
\param{const wxString\& }{name = ``radioButton"}}
|
|
|
|
|
|
|
|
Constructor, creating and showing a radio button.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{parent}{Parent window. Must not be NULL.}
|
|
|
|
|
|
|
|
\docparam{id}{Window identifier. A value of -1 indicates a default value.}
|
|
|
|
|
|
|
|
\docparam{label}{Label for the radio button.}
|
|
|
|
|
|
|
|
\docparam{pos}{Window position. If the position (-1, -1) is specified then a default position is chosen.}
|
|
|
|
|
|
|
|
\docparam{size}{Window size. If the default size (-1, -1) is specified then a default size is chosen.}
|
|
|
|
|
|
|
|
\docparam{style}{Window style. See \helpref{wxRadioButton}{wxradiobutton}.}
|
|
|
|
|
|
|
|
\docparam{validator}{Window validator.}
|
|
|
|
|
|
|
|
\docparam{name}{Window name.}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxRadioButton::Create}{wxradiobuttoncreate}, \helpref{wxValidator}{wxvalidator}
|
|
|
|
|
|
|
|
\membersection{wxRadioButton::\destruct{wxRadioButton}}
|
|
|
|
|
|
|
|
\func{void}{\destruct{wxRadioButton}}{\void}
|
|
|
|
|
|
|
|
Destructor, destroying the radio button item.
|
|
|
|
|
|
|
|
\membersection{wxRadioButton::Create}\label{wxradiobuttoncreate}
|
|
|
|
|
1998-06-14 08:11:50 -04:00
|
|
|
\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp
|
1998-05-20 10:25:30 -04:00
|
|
|
\param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
|
1998-06-14 08:11:50 -04:00
|
|
|
\param{long}{ style = 0},\rtfsp
|
1998-05-20 10:25:30 -04:00
|
|
|
\param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp
|
|
|
|
\param{const wxString\& }{name = ``radioButton"}}
|
|
|
|
|
|
|
|
Creates the choice for two-step construction. See \helpref{wxRadioButton::wxRadioButton}{wxradiobuttonconstr} for
|
|
|
|
further details.
|
|
|
|
|
|
|
|
\membersection{wxRadioButton::GetValue}\label{wxradiobuttongetvalue}
|
|
|
|
|
|
|
|
\constfunc{bool}{GetValue}{\void}
|
|
|
|
|
|
|
|
Returns TRUE if the radio button is depressed, FALSE otherwise.
|
|
|
|
|
|
|
|
\membersection{wxRadioButton::SetValue}\label{wxradiobuttonsetvalue}
|
|
|
|
|
|
|
|
\func{void}{SetValue}{\param{const bool}{ value}}
|
|
|
|
|
|
|
|
Sets the radio button to selected or deselected status.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{value}{TRUE to select, FALSE to deselect.}
|
|
|
|
|
|
|
|
|