]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/control.tex
Added periods
[wxWidgets.git] / docs / latex / wx / control.tex
CommitLineData
a660d684
KB
1\section{\class{wxControl}}\label{wxcontrol}
2
1b69c815 3This is the base class for a control or ``widget''.
a660d684 4
1b69c815
VZ
5A control is generally a small window which processes user input and/or
6displays 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
33Simulates 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
40Returns the control's text.
41
f107837e 42Note that the returned string contains the mnemonics (\texttt{\&} characters) if
74639764
VZ
43any, use \helpref{wxControl::GetLabelText}{wxcontrolgetlabeltext} if they are
44undesired.
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
53Returns the control's label, or the given \arg{label} string for the static
54version, 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
61Sets the item's text.
62
f107837e
VZ
63The \texttt{\&} characters in the \arg{label} are special and indicate that the
64following character is a mnemonic for this control and can be used to activate
65it from the keyboard (typically by using \textit{Alt} key in combination with
66it). To insert a literal ampersand character, you need to double it, i.e. use
67\texttt{"\&\&"}.
68
69