Static text sizeΒΆ

height = integer
width = integer

Optional. These clauses are useful if the text has a different background colour from the parent window (background colour is assigned by the label_bgc clause). If a width is specified, the text is by default displayed centred within the width. Alternatively, the text can be left-justified or right-justified within the specified width by the use of style flags.

If a width is specified which is less than the label width, the label text will flow on to subsequent lines. The height, which defaults to the height of a single row, must be increased to accommodate the overflow text, or else it will nor be visible.

From Sculptor 5 onwards, size may be expressed in pixels or characters; in earlier versions characters (columns and rows) must be used. See Pixel and character positioning.

Defaults: the default width is the label width; the default height is one row.


RELATED TOPICS

Static text