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{Window styles
}
14 There are no special styles for this control.
16 See also
\helpref{window styles overview
}{windowstyles
}.
20 \helpref{wxStaticBitmap
}{wxstaticbitmap
},
\helpref{wxStaticBox
}{wxstaticbox
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxStaticText::wxStaticText
}\label{wxstatictextconstr
}
26 \func{}{wxStaticText
}{\void}
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"
}}
34 Constructor, creating and showing a text control.
36 \wxheading{Parameters
}
38 \docparam{parent
}{Parent window. Should not be NULL.
}
40 \docparam{id
}{Control identifier. A value of -
1 denotes a default value.
}
42 \docparam{label
}{Text label.
}
44 \docparam{pos
}{Window position.
}
46 \docparam{size
}{Window size.
}
48 \docparam{style
}{Window style. See
\helpref{wxStaticText
}{wxstatictext
}.
}
50 \docparam{name
}{Window name.
}
54 \helpref{wxStaticText::Create
}{wxstatictextcreate
}
56 \membersection{wxStaticText::Create
}\label{wxstatictextcreate
}
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"
}}
62 Creation function, for two-step construction. For details see
\helpref{wxStaticText::wxStaticText
}{wxstatictextconstr
}.
64 \membersection{wxStaticText::GetLabel
}\label{wxstatictextgetlabel
}
66 \constfunc{wxString
}{GetLabel
}{\void}
68 Returns the contents of the control.
70 \membersection{wxStaticText::SetLabel
}\label{wxstatictextsetlabel
}
72 \func{virtual void
}{SetLabel
}{\param{const wxString\&
}{ label
}}
74 Sets the static text label.
76 \wxheading{Parameters
}
78 \docparam{label
}{The new label to set. It may contain newline characters.
}