1 \section{\class{wxRadioButton
}}\label{wxradiobutton
}
3 A radio button item is a button which usually denotes one of several mutually
4 exclusive options. It has a text label next to a (usually) round button.
6 \wxheading{Derived from
}
8 \helpref{wxControl
}{wxcontrol
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Window styles
}
19 There are no specific styles for this class.
21 See also
\helpref{window styles overview
}{windowstyles
}.
23 \wxheading{Event handling
}
26 \begin{twocollist
}\itemsep=
0pt
27 \twocolitem{{\bf EVT
\_RADIOBUTTON(id, func)
}}{Process a wxEVT
\_COMMAND\_RADIOBUTTON\_SELECTED event,
28 when the radiobutton is clicked.
}
33 \helpref{Event handling overview
}{eventhandlingoverview
},
\helpref{wxRadioBox
}{wxradiobox
},
\rtfsp
34 \helpref{wxCheckBox
}{wxcheckbox
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
38 \membersection{wxRadioButton::wxRadioButton
}\label{wxradiobuttonconstr
}
40 \func{}{wxRadioButton
}{\void}
44 \func{}{wxRadioButton
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\param{const wxString\&
}{label
},
\rtfsp
45 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
46 \param{long
}{ style =
0},
\rtfsp
47 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
\rtfsp
48 \param{const wxString\&
}{name = ``radioButton"
}}
50 Constructor, creating and showing a radio button.
52 \wxheading{Parameters
}
54 \docparam{parent
}{Parent window. Must not be NULL.
}
56 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
58 \docparam{label
}{Label for the radio button.
}
60 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
62 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then a default size is chosen.
}
64 \docparam{style
}{Window style. See
\helpref{wxRadioButton
}{wxradiobutton
}.
}
66 \docparam{validator
}{Window validator.
}
68 \docparam{name
}{Window name.
}
72 \helpref{wxRadioButton::Create
}{wxradiobuttoncreate
},
\helpref{wxValidator
}{wxvalidator
}
74 \membersection{wxRadioButton::
\destruct{wxRadioButton
}}
76 \func{void
}{\destruct{wxRadioButton
}}{\void}
78 Destructor, destroying the radio button item.
80 \membersection{wxRadioButton::Create
}\label{wxradiobuttoncreate
}
82 \func{bool
}{Create
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\param{const wxString\&
}{label
},
\rtfsp
83 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
84 \param{long
}{ style =
0},
\rtfsp
85 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
\rtfsp
86 \param{const wxString\&
}{name = ``radioButton"
}}
88 Creates the choice for two-step construction. See
\helpref{wxRadioButton::wxRadioButton
}{wxradiobuttonconstr
} for
91 \membersection{wxRadioButton::GetValue
}\label{wxradiobuttongetvalue
}
93 \constfunc{bool
}{GetValue
}{\void}
95 Returns TRUE if the radio button is depressed, FALSE otherwise.
97 \membersection{wxRadioButton::SetValue
}\label{wxradiobuttonsetvalue
}
99 \func{void
}{SetValue
}{\param{const bool
}{ value
}}
101 Sets the radio button to selected or deselected status.
103 \wxheading{Parameters
}
105 \docparam{value
}{TRUE to select, FALSE to deselect.
}