Colour Values |
DEVELOPER |
Colour values can be specified in two forms:
As a comma-separated string in the form "R,G,B", where "R", "G", and "B" specify the Red, Green, and Blue components of the colour. Each component is a decimal numbers in the range 0 through 255 (inclusive).
As a colour name in a string literal or alpha variable. Each colour name should be defined in the Windows Client Application Definitions File. The colour name translation is done by the Windows Client. The colour name provides a level of indirection (that can assist in adjusting data presentation to users with special needs) because the RGB components of each colour name can be defined differently on each Windows Client machine. Colour names are not case sensitive.
In either case, the displayed colour may also be further transformed by the Windows Client machine subsystems due to Colour Mapping.
In the use of Property Logic Commands the colour value retrieved will always the same as the value set, irrespective of any colour mapping done by the operating system or display subsystem. Therefore, if the colour was set using an RGB triplet, that triplet will be returned even if it corresponds to a colour name. Likewise, if a colour name is used to set the property, that name will be retrieved, not the RGB triplet value.
RGB colour specifications will be returned with 0 values, not null value (e.g. 255,0,0 not 255,,).
Topic ID: 510042