COLOR property (Colordropdown)
Description
When used with an index value this property returns the color value of a specified item in the list when used with an index.
When non-indexed it returns the RGB value of the currently selected item, selects the item that matches the specified value.
When used with an index this property returns the RGB color value of the specified item. When not used with an index this property gets the value of the current item displayed.
Property Value
The COLOR property should contain one of the following:
• An RGB color value from Black (0) to White (16777215)
• A value that denotes a special Presentation Server color (such as Transparent (-1), or UseDefault (-2) ) or one of the Windows system colors (ButtonShadow, WindowText etc.)
• A special Color-Key value (-1 to -5) that denotes which pixel in an image contains the background color when drawing the image in a transparent fashion.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
Get/Set | Get/Set | Position (Get) | No | No |
Remarks
At runtime the color of an individual item may be referenced via a row index value using the normal Get _Property index parameter. The index value is the 1-based position of the item.
For list of special color codes supported by the Presentation Server see the COLORS insert record.
For a list of special Color-Key
See Also
COLORKEYMODE property, Image API COLORKEY property