Colour Management

From PxPlus

Jump to: navigation, search

Version 9 allows you to change the default foreground (text) and background colour for both disabled controls and for the Auto-complete list box using the 'OPTION' mnemonic.

Disabled Control Colours

To change the colours of disabled controls (List boxes, Multi-lines, Radio-button text and Check box text), you can issue a 'OPTION' mnemonic with "ClrDisabledText" to change the foreground/text colour, or "ClrDisabledBack" to change the background colour.

PRINT 'OPTION'("ClrDisabledBack","RGB:250 165 000"),

The colour specified will ONLY be applied to controls whose current colour is the system default (i.e. it has not been set).

Auto-Complete Colours

By default the auto-complete list box will inherit the colour of the associated input field (multi-line).

To override the colours of the auto-complete list box you can issue an 'OPTION' mnemonic with "ClrAutoCompText" to change the foreground/text colour, or "ClrAutoCompBack" to change the background colour.

PRINT 'OPTION'("ClrAutoCompText","RGB:200 225 255"),
Personal tools