.\" This is a wxWidgets manpage page generated from the XML docs .TH wxStaticText 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxStaticText \- One or more lines of non-editable text .SH DESCRIPTION A static text control displays one or more lines of read-only text. .SH "PARENTS" wxControl wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/stattext.h .SH MEMBERS .SS wxStaticText () Default constructor. .SS wxStaticText (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxString& name = ``staticText") Constructor, creating and showing a text control. .SS bool Create (wxWindow* parentwxWindowID idconst wxString& labelconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxString& name = ``staticText") Creation function, for two-step construction. For details see wxStaticText::wxStaticText . .SS wxString GetLabel () Returns the contents of the control. .SS virtual 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. .SS void 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. \newsince{2.6.2} .SH "WINDOW STYLES" .SS wxALIGN_LEFT Align the text to the left .SS wxALIGN_RIGHT Align the text to the right .SS wxALIGN_CENTRE Center the text (horizontally) .SS wxST_NO_AUTORESIZE wxST_NO_AUTORESIZE .SH "SEE ALSO" wxControl wxWindow wxEvtHandler wxObject wxStaticBitmap wxStaticBox .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.