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
|