A static text control displays one or more lines of read-only text.
ALIGN_LEFT |
Align the text to the left |
ALIGN_RIGHT |
Align the text to the right |
ALIGN_CENTRE |
Center the text (horizontally) |
ST_NO_AUTORESIZE |
By default, the control willadjust its size to exactly fit to the size of the text when set_label is called. If this style flag isgiven, the control will not change its size (this style is especially usefulwith controls which also have ALIGN_RIGHT or CENTER style because otherwisethey won’t make sense any longer after a call to SetLabel) |
See also window styles overview.
Constructor, creating and showing a text control.
Creation function, for two-step construction. For details see StaticText.new.
Returns the contents of the control.
Sets the static text label and updates the controls size to exactly fit the
label unless the control has ST_NO_AUTORESIZE flag.
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.
2.6.2
[This page automatically generated from the Textile source at 2023-06-09 00:45:33 +0000]