FOREGROUND-RGB and BACKGROUND-RGB Phrases

{FOREGROUND-RGB } val
{BACKGROUND-RGB}

These phrases apply to the following controls:

These phrases do not apply to the following controls:

Each control class determines the exact implementation or meaning.

The value is the normal Windows RGB encoding. See the MSDN GDI reference for more information.

A negative value causes the property to be ignored. The default value for all controls is -1.

When non-negative, the value overrides any other color specification. Also, the HIGH, LOW, NORMAL and REVERSE styles have no effect on the -RGB properties. The palette is also irrelevant. Normal color handling does occur, but is overwritten by any -RGB specification. This is important since not all systems support RGB colors.

FOREGROUND-RGB and BACKGROUND-RGB are ignored on any system with 256 colors or less.