wxStaticTextA static text control displays one or more lines of read-only text. Derived from
wxControl Include files <wx/stattext.h> Window styles
See also window styles overview. See also Members
wxStaticText::wxStaticText
wxStaticText::wxStaticTextwxStaticText() Default constructor. wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, 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
wxStaticText::Createbool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "staticText") Creation function, for two-step construction. For details see wxStaticText::wxStaticText.
wxStaticText::GetLabelwxString GetLabel() const Returns the contents of the control.
wxStaticText::SetLabelvirtual void SetLabel(const wxString& label) Sets the static text label and updates the controls size to exactly fit the label unless the control has wxST_NO_AUTORESIZE flag. Parameters label
wxStaticText::Wrapvoid Wrap(int width) This functions wraps the controls label so that each of its lines becomes at most width pixels wide if possible (the lines are broken at words boundaries so it might not be the case if words are too long). If width is negative, no wrapping is done. This function is new since wxWidgets version 2.6.2
|