Style attributes common to all elements

Common presentation style attributes apply to any graphical element, such as windows, layout containers, or form items.

Important: Common style attribute apply to basic layout elements such as containers (Group) and form widgets (Label, Button, Edit, CheckBox). Depending on the front-end platform, common style attributes typically do not apply to advanced graphical elements such as TopMenu or ToolBar, especially when such widgets can be configured with the user interface theme of the front-end platform. Consider using common style attribute only for elements inside the form layout.

backgroundColor

Defines the color to be used to fill the background of the object.

For possible values, see Colors.

Default is no value (default background color of the object, or inherited background color).

border

Defines the border for the widget.

If value is "none", it removes the border.

Default is no value (the widget gets its default appearance).

This attribute applies especially to the IMAGE form item type. Depending on the front-end, the border of other widgets may or may not be affected by this style attribute.

defaultTTFColor

Defines the default color used for TTF icons.

All icons displayed in the window using this style default get the color specified in the defaultTTFColor attribute.

The value for this attribute must be an RGB specification or a named color as listed in Colors.

For more details about TTF icon usage see Using a simple image name (centralized icons).

fontFamily

Defines the name of the font.

For possible values, see Font families.

Default is no value (default object font or inherited font).

fontSize

Defines the size of the characters.

For possible values, see Font sizes.

Default is no value (default object font or inherited font).

fontStyle

Defines the style of characters.

For possible values, see Font styles.

Default is no value (default object font or inherited font).

fontWeight

Defines the weight of the characters.

Possible values for font weights depend on the front-end native font names, see Font weights for details.

Default is no value (default object font or inherited font).

textColor

Defines the color to be used to paint the text of the object.

For possible values, see Colors.

Default is no value (default object color or inherited color).

textDecoration

Defines the decoration for the text.

Values can be "overline", "underline" or "line-through".

Default is no value (default object font or inherited font).