]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxControl}}\label{wxcontrol} |
2 | ||
1b69c815 | 3 | This is the base class for a control or ``widget''. |
a660d684 | 4 | |
1b69c815 VZ |
5 | A control is generally a small window which processes user input and/or |
6 | displays one or more item of data. | |
a660d684 KB |
7 | |
8 | \wxheading{Derived from} | |
9 | ||
10 | \helpref{wxWindow}{wxwindow}\\ | |
11 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
12 | \helpref{wxObject}{wxobject} | |
13 | ||
954b8ae6 JS |
14 | \wxheading{Include files} |
15 | ||
16 | <wx/control.h> | |
17 | ||
a7af285d VZ |
18 | \wxheading{Library} |
19 | ||
20 | \helpref{wxCore}{librarieslist} | |
21 | ||
a660d684 KB |
22 | \wxheading{See also} |
23 | ||
24 | \helpref{wxValidator}{wxvalidator} | |
25 | ||
26 | \latexignore{\rtfignore{\wxheading{Members}}} | |
27 | ||
1b69c815 | 28 | |
a660d684 KB |
29 | \membersection{wxControl::Command}\label{wxcontrolcommand} |
30 | ||
31 | \func{void}{Command}{\param{wxCommandEvent\& }{event}} | |
32 | ||
33 | Simulates the effect of the user issuing a command to the item. See \helpref{wxCommandEvent}{wxcommandevent}. | |
34 | ||
1b69c815 | 35 | |
a660d684 KB |
36 | \membersection{wxControl::GetLabel}\label{wxcontrolgetlabel} |
37 | ||
19cf1ef3 | 38 | \constfunc{wxString}{GetLabel}{\void} |
a660d684 KB |
39 | |
40 | Returns the control's text. | |
41 | ||
f107837e | 42 | Note that the returned string contains the mnemonics (\texttt{\&} characters) if |
74639764 VZ |
43 | any, use \helpref{wxControl::GetLabelText}{wxcontrolgetlabeltext} if they are |
44 | undesired. | |
45 | ||
46 | ||
47 | \membersection{wxControl::GetLabelText}\label{wxcontrolgetlabeltext} | |
48 | ||
49 | \constfunc{const wxString\&}{GetLabelText}{\void} | |
50 | ||
19cf1ef3 | 51 | \func{static wxString}{GetLabelText}{\param{const wxString\& }{label}} |
74639764 | 52 | |
19cf1ef3 FM |
53 | Returns the control's label, or the given \arg{label} string for the static |
54 | version, without the mnemonics characters. | |
f107837e | 55 | |
1b69c815 | 56 | |
a660d684 KB |
57 | \membersection{wxControl::SetLabel}\label{wxcontrolsetlabel} |
58 | ||
59 | \func{void}{SetLabel}{\param{const wxString\& }{label}} | |
60 | ||
61 | Sets the item's text. | |
62 | ||
f107837e VZ |
63 | The \texttt{\&} characters in the \arg{label} are special and indicate that the |
64 | following character is a mnemonic for this control and can be used to activate | |
65 | it from the keyboard (typically by using \textit{Alt} key in combination with | |
66 | it). To insert a literal ampersand character, you need to double it, i.e. use | |
67 | \texttt{"\&\&"}. | |
68 | ||
69 |