A static text control displays one or more lines of read-only text.
Derived from
wxControl
wxWindow
wxEvtHandler
wxObject
Include files
<wx/stattext.h>
Window styles
There are no special styles for this control.
See also window styles overview.
See also
Members
wxStaticText::wxStaticText
wxStaticText::Create
wxStaticText::GetLabel
wxStaticText::SetLabel
wxStaticText()
Default constructor.
wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label = "", const wxPoint& pos, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "staticText")
Constructor, creating and showing a text control.
Parameters
parent
id
label
pos
size
style
name
See also
bool Create(wxWindow* parent, wxWindowID id, const wxString& label = "", const wxPoint& pos, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "staticText")
Creation function, for two-step construction. For details see wxStaticText::wxStaticText.
wxString GetLabel() const
Returns the contents of the control.
virtual void SetLabel(const wxString& label)
Sets the static text label.
Parameters
label