Static text styleΒΆ

style = flags

The following flags are currently available:

WS_INVISIBLE

Create invisible.

WS_DISABLED

Create disabled. Faint text is used and the hotkey, if any, cannot be activated. See Style flags.

WS_THEMED

This style should be set for static text that is being used as a control label. When the program is running in a themed environment, if WS_THEMED is set Sculptor draws the text using the theme style and colour.

It is not possible to override the foreground colour of themed text. If a foreground colour is specified for the text, it is ignored in a themed environment and used only in a classic environment. If a background colour is specified it is used in both environments. However, it is not recommended that a background colour be specified for themed text, since it may clash with the selected theme.

Static text foreground and background colours may be set by use of the label_fgc and label_bgc clauses, which can be set for individual text objects or at window level. See Colours; Static text label.

In a themed environment, Windows draws standard control labels two pixels to the left of the position it draws them in a classic environment. For this reason, programs that use themed text are best designed on a themed platform, especially if themed text needs to be aligned with standard control labels. To compensate for this difference, Sculptor positions themed text two pixels to the right of its defined x co-ordinate when the program is running on a classic Windows platform.

WS_INDENT
WS_PLAIN
WS_STANDOUT
Indented border.
Plain black line border.
Standout border.

image0

WS_CJT 1

Centre text.

WS_LJT 1

Left justify text.

WS_RJT 1

Right justify text.

1(1,2,3)

These flags have no effect unless a width is specified.

Default: Only WS_CJT is set.


RELATED TOPICS

Static text

Style flags