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{Window styles
}
15 There are no specific styles for this class.
17 See also
\helpref{window styles overview
}{windowstyles
}.
19 \wxheading{Event handling
}
22 \begin{twocollist
}\itemsep=
0pt
23 \twocolitem{{\bf EVT
\_RADIOBUTTON(id, func)
}}{Process a wxEVT
\_COMMAND\_RADIOBUTTON\_SELECTED event,
24 when the radiobutton is clicked.
}
29 \helpref{Event handling overview
}{eventhandlingoverview
},
\helpref{wxRadioBox
}{wxradiobox
},
\rtfsp
30 \helpref{wxCheckBox
}{wxcheckbox
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxRadioButton::wxRadioButton
}\label{wxradiobuttonconstr
}
36 \func{}{wxRadioButton
}{\void}
40 \func{}{wxRadioButton
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\param{const wxString\&
}{label
},
\rtfsp
41 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
42 \param{long
}{ style =
0},
\rtfsp
43 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
\rtfsp
44 \param{const wxString\&
}{name = ``radioButton"
}}
46 Constructor, creating and showing a radio button.
48 \wxheading{Parameters
}
50 \docparam{parent
}{Parent window. Must not be NULL.
}
52 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
54 \docparam{label
}{Label for the radio button.
}
56 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
58 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then a default size is chosen.
}
60 \docparam{style
}{Window style. See
\helpref{wxRadioButton
}{wxradiobutton
}.
}
62 \docparam{validator
}{Window validator.
}
64 \docparam{name
}{Window name.
}
68 \helpref{wxRadioButton::Create
}{wxradiobuttoncreate
},
\helpref{wxValidator
}{wxvalidator
}
70 \membersection{wxRadioButton::
\destruct{wxRadioButton
}}
72 \func{void
}{\destruct{wxRadioButton
}}{\void}
74 Destructor, destroying the radio button item.
76 \membersection{wxRadioButton::Create
}\label{wxradiobuttoncreate
}
78 \func{bool
}{Create
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\param{const wxString\&
}{label
},
\rtfsp
79 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
80 \param{long
}{ style =
0},
\rtfsp
81 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
\rtfsp
82 \param{const wxString\&
}{name = ``radioButton"
}}
84 Creates the choice for two-step construction. See
\helpref{wxRadioButton::wxRadioButton
}{wxradiobuttonconstr
} for
87 \membersection{wxRadioButton::GetValue
}\label{wxradiobuttongetvalue
}
89 \constfunc{bool
}{GetValue
}{\void}
91 Returns TRUE if the radio button is depressed, FALSE otherwise.
93 \membersection{wxRadioButton::SetValue
}\label{wxradiobuttonsetvalue
}
95 \func{void
}{SetValue
}{\param{const bool
}{ value
}}
97 Sets the radio button to selected or deselected status.
99 \wxheading{Parameters
}
101 \docparam{value
}{TRUE to select, FALSE to deselect.
}