A script-enabled browser is required for this page to function properly.

Foreground Color Property

Description

Specifies the color of the object’s foreground region. For items, defines the color of the text displayed in the item. The property value is a reference to an RGB value such as r191g223b191.

In this example, the first 191 refers to the amount of red and can range from 0 to 255. It is in contrast with the naming convention used in the standard color palette, where names for colors are sometimes alphanumeric names such as cyan, and sometimes pseudo-rgb which have names that relate to the percentage of each color component (and not the absolute value).

Applies to item, tab page, canvas, window, radio button

Set Programmatically

Default

Unspecified

Restriction

Foreground color is always ignored for scrollbars.

Refer to Built-in

GET_ITEM_PROPERTY

SET_ITEM_PROPERTY

GET_RADIO_BUTTON_PROPERTY

SET_RADIO_BUTTON_PROPERTY

GET_TAB_PAGE_PROPERTY

SET_TAB_PAGE_PROPERTY

GET_CANVAS_PROPERTY

SET_CANVAS_PROPERTY

GET_WINDOW_PROPERTY

SET_WINDOW_PROPERTY


About visual attributes

Basing an object on a visual attribute

Setting an object's color attributes

About formatting items in the Layout Editor

Creating a named visual attribute