]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxRadioButton}}\label{wxradiobutton} |
2 | ||
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. | |
5 | ||
6 | \wxheading{Derived from} | |
7 | ||
8 | \helpref{wxControl}{wxcontrol}\\ | |
9 | \helpref{wxWindow}{wxwindow}\\ | |
10 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
11 | \helpref{wxObject}{wxobject} | |
12 | ||
13 | \wxheading{Window styles} | |
14 | ||
15 | There are no specific styles for this class. | |
16 | ||
17 | See also \helpref{window styles overview}{windowstyles}. | |
18 | ||
19 | \wxheading{See also} | |
20 | ||
21 | \helpref{Event handling overview}{eventhandlingoverview}, \helpref{wxRadioBox}{wxradiobox},\rtfsp | |
22 | \helpref{wxCheckBox}{wxcheckbox} | |
23 | ||
24 | \latexignore{\rtfignore{\wxheading{Members}}} | |
25 | ||
26 | \membersection{wxRadioButton::wxRadioButton}\label{wxradiobuttonconstr} | |
27 | ||
28 | \func{}{wxRadioButton}{\void} | |
29 | ||
30 | Default constructor. | |
31 | ||
32 | \func{}{wxRadioButton}{\param{wxWindow*}{ parent}, \param{const wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp | |
33 | \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp | |
34 | \param{const long}{ style = 0},\rtfsp | |
35 | \param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp | |
36 | \param{const wxString\& }{name = ``radioButton"}} | |
37 | ||
38 | Constructor, creating and showing a radio button. | |
39 | ||
40 | \wxheading{Parameters} | |
41 | ||
42 | \docparam{parent}{Parent window. Must not be NULL.} | |
43 | ||
44 | \docparam{id}{Window identifier. A value of -1 indicates a default value.} | |
45 | ||
46 | \docparam{label}{Label for the radio button.} | |
47 | ||
48 | \docparam{pos}{Window position. If the position (-1, -1) is specified then a default position is chosen.} | |
49 | ||
50 | \docparam{size}{Window size. If the default size (-1, -1) is specified then a default size is chosen.} | |
51 | ||
52 | \docparam{style}{Window style. See \helpref{wxRadioButton}{wxradiobutton}.} | |
53 | ||
54 | \docparam{validator}{Window validator.} | |
55 | ||
56 | \docparam{name}{Window name.} | |
57 | ||
58 | \wxheading{See also} | |
59 | ||
60 | \helpref{wxRadioButton::Create}{wxradiobuttoncreate}, \helpref{wxValidator}{wxvalidator} | |
61 | ||
62 | \membersection{wxRadioButton::\destruct{wxRadioButton}} | |
63 | ||
64 | \func{void}{\destruct{wxRadioButton}}{\void} | |
65 | ||
66 | Destructor, destroying the radio button item. | |
67 | ||
68 | \membersection{wxRadioButton::Create}\label{wxradiobuttoncreate} | |
69 | ||
70 | \func{bool}{Create}{\param{wxWindow*}{ parent}, \param{const wxWindowID}{ id}, \param{const wxString\& }{label},\rtfsp | |
71 | \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp | |
72 | \param{const long}{ style = 0},\rtfsp | |
73 | \param{const wxValidator\& }{validator = wxDefaultValidator},\rtfsp | |
74 | \param{const wxString\& }{name = ``radioButton"}} | |
75 | ||
76 | Creates the choice for two-step construction. See \helpref{wxRadioButton::wxRadioButton}{wxradiobuttonconstr} for | |
77 | further details. | |
78 | ||
79 | \membersection{wxRadioButton::GetValue}\label{wxradiobuttongetvalue} | |
80 | ||
81 | \constfunc{bool}{GetValue}{\void} | |
82 | ||
83 | Returns TRUE if the radio button is depressed, FALSE otherwise. | |
84 | ||
85 | \membersection{wxRadioButton::SetValue}\label{wxradiobuttonsetvalue} | |
86 | ||
87 | \func{void}{SetValue}{\param{const bool}{ value}} | |
88 | ||
89 | Sets the radio button to selected or deselected status. | |
90 | ||
91 | \wxheading{Parameters} | |
92 | ||
93 | \docparam{value}{TRUE to select, FALSE to deselect.} | |
94 | ||
95 |