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