Language Reference - System Colours

Home

System colours

A colour is an integer number associated with the constants set up in the property dialog. These constants may be used in the method language. The system colours have the following names and values:

0 XXX Blue8 XXX LightRed
1 XXX LightBlue9 XXX Red
2 XXX LightCyan10 Magenta
3 XXX Cyan11 XXX LightMagenta
4 XXX Brown12 XXX White
5 XXX Green13 XXX LightGrey [LightGray]
6 XXX LightGreen14 XXX Grey [Gray]
7 XXX Yellow15 XXX Black

If other colours (16 to 255) are given names in the Property dialog, those names become reserved words in the language and are accessible in the same way as the ones above. The names and numbers are also accessible via ColourName and ColourNumber.

Colours 16 to 255 can be referred to as constants using either the format colourxx where xx is the relevant colour number, or just as the number itself.