1 \section{\class{wxStaticText
}}\label{wxstatictext
}
3 A static text control displays one or more lines of read-only text.
5 \wxheading{Derived from
}
7 \helpref{wxControl
}{wxcontrol
}\\
8 \helpref{wxWindow
}{wxwindow
}\\
9 \helpref{wxEvtHandler
}{wxevthandler
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
16 \wxheading{Window styles
}
18 There are no special styles for this control.
20 See also
\helpref{window styles overview
}{windowstyles
}.
24 \helpref{wxStaticBitmap
}{wxstaticbitmap
},
\helpref{wxStaticBox
}{wxstaticbox
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxStaticText::wxStaticText
}\label{wxstatictextconstr
}
30 \func{}{wxStaticText
}{\void}
34 \func{}{wxStaticText
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
35 \param{const wxString\&
}{label = ``"
},
\param{const wxPoint\&
}{pos
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
36 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticText"
}}
38 Constructor, creating and showing a text control.
40 \wxheading{Parameters
}
42 \docparam{parent
}{Parent window. Should not be NULL.
}
44 \docparam{id
}{Control identifier. A value of -
1 denotes a default value.
}
46 \docparam{label
}{Text label.
}
48 \docparam{pos
}{Window position.
}
50 \docparam{size
}{Window size.
}
52 \docparam{style
}{Window style. See
\helpref{wxStaticText
}{wxstatictext
}.
}
54 \docparam{name
}{Window name.
}
58 \helpref{wxStaticText::Create
}{wxstatictextcreate
}
60 \membersection{wxStaticText::Create
}\label{wxstatictextcreate
}
62 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
63 \param{const wxString\&
}{label = ``"
},
\param{const wxPoint\&
}{pos
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
64 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticText"
}}
66 Creation function, for two-step construction. For details see
\helpref{wxStaticText::wxStaticText
}{wxstatictextconstr
}.
68 \membersection{wxStaticText::GetLabel
}\label{wxstatictextgetlabel
}
70 \constfunc{wxString
}{GetLabel
}{\void}
72 Returns the contents of the control.
74 \membersection{wxStaticText::SetLabel
}\label{wxstatictextsetlabel
}
76 \func{virtual void
}{SetLabel
}{\param{const wxString\&
}{ label
}}
78 Sets the static text label.
80 \wxheading{Parameters
}
82 \docparam{label
}{The new label to set. It may contain newline characters.
}