]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/stattext.tex
Removed some TODOs in the Latex docs; changed wxMotif wxClipboard to match
[wxWidgets.git] / docs / latex / wx / stattext.tex
1 \section{\class{wxStaticText}}\label{wxstatictext}
2
3 A static text control displays one or more lines of read-only text.
4
5 \wxheading{Derived from}
6
7 \helpref{wxControl}{wxcontrol}\\
8 \helpref{wxWindow}{wxwindow}\\
9 \helpref{wxEvtHandler}{wxevthandler}\\
10 \helpref{wxObject}{wxobject}
11
12 \wxheading{Window styles}
13
14 There are no special styles for this control.
15
16 See also \helpref{window styles overview}{windowstyles}.
17
18 \wxheading{See also}
19
20 \helpref{wxStaticBitmap}{wxstaticbitmap}, \helpref{wxStaticBox}{wxstaticbox}
21
22 \latexignore{\rtfignore{\wxheading{Members}}}
23
24 \membersection{wxStaticText::wxStaticText}\label{wxstatictextconstr}
25
26 \func{}{wxStaticText}{\void}
27
28 Default constructor.
29
30 \func{}{wxStaticText}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
31 \param{const wxString\& }{label = ``"}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
32 \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticText"}}
33
34 Constructor, creating and showing a text control.
35
36 \wxheading{Parameters}
37
38 \docparam{parent}{Parent window. Should not be NULL.}
39
40 \docparam{id}{Control identifier. A value of -1 denotes a default value.}
41
42 \docparam{label}{Text label.}
43
44 \docparam{pos}{Window position.}
45
46 \docparam{size}{Window size.}
47
48 \docparam{style}{Window style. See \helpref{wxStaticText}{wxstatictext}.}
49
50 \docparam{name}{Window name.}
51
52 \wxheading{See also}
53
54 \helpref{wxStaticText::Create}{wxstatictextcreate}
55
56 \membersection{wxStaticText::Create}\label{wxstatictextcreate}
57
58 \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
59 \param{const wxString\& }{label = ``"}, \param{const wxPoint\& }{pos}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
60 \param{long}{ style = 0}, \param{const wxString\& }{name = ``staticText"}}
61
62 Creation function, for two-step construction. For details see \helpref{wxStaticText::wxStaticText}{wxstatictextconstr}.
63
64 \membersection{wxStaticText::GetLabel}\label{wxstatictextgetlabel}
65
66 \constfunc{wxString}{GetLabel}{\void}
67
68 Returns the contents of the control.
69
70 \membersection{wxStaticText::SetLabel}\label{wxstatictextsetlabel}
71
72 \func{virtual void}{SetLabel}{\param{const wxString\& }{ label}}
73
74 Sets the static text label.
75
76 \wxheading{Parameters}
77
78 \docparam{label}{The new label to set. It may contain newline characters.}
79
80