]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/control.tex
52ecc060f25fd4a54c151a8375fc7ee30096c79b
[wxWidgets.git] / docs / latex / wx / control.tex
1 \section{\class{wxControl}}\label{wxcontrol}
2
3 This is the base class for a control or ``widget''.
4
5 A control is generally a small window which processes user input and/or
6 displays one or more item of data.
7
8 \wxheading{Derived from}
9
10 \helpref{wxWindow}{wxwindow}\\
11 \helpref{wxEvtHandler}{wxevthandler}\\
12 \helpref{wxObject}{wxobject}
13
14 \wxheading{Include files}
15
16 <wx/control.h>
17
18 \wxheading{See also}
19
20 \helpref{wxValidator}{wxvalidator}
21
22 \latexignore{\rtfignore{\wxheading{Members}}}
23
24
25 \membersection{wxControl::Command}\label{wxcontrolcommand}
26
27 \func{void}{Command}{\param{wxCommandEvent\& }{event}}
28
29 Simulates the effect of the user issuing a command to the item. See \helpref{wxCommandEvent}{wxcommandevent}.
30
31
32 \membersection{wxControl::GetAdjustMinSizeFlag}\label{wxcontrolgetadjustminsizeflag}
33
34 \func{bool}{GetAdjustMinSizeFlag}{}
35
36 Returns whether the minsize should be adjusted for this control when
37 SetLabel or SetFont are called.
38
39
40 \membersection{wxControl::GetLabel}\label{wxcontrolgetlabel}
41
42 \func{wxString\&}{GetLabel}{\void}
43
44 Returns the control's text.
45
46
47 \membersection{wxControl::SetAdjustMinSizeFlag}\label{wxcontrolsetadjustminsizeflag}
48
49 \func{void}{SetAdjustMinSizeFlag}{\param{bool }{adjust}}
50
51 By default controls will readjust their size and minsize when
52 SetLabel or SetFont are called. This flag will allow you to
53 control this behavior.
54
55 \membersection{wxControl::SetLabel}\label{wxcontrolsetlabel}
56
57 \func{void}{SetLabel}{\param{const wxString\& }{label}}
58
59 Sets the item's text.
60