ItemColor - DfBaseFormList
Sets the color of an individual item
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Parameters
| Parameter | Type | Description |
|---|---|---|
| iItem | Integer | The item number |
Syntax
Property Integer ItemColor
| Access Type | Syntax |
|---|---|
| Read Access: | Get ItemColor to IntegerVariable |
| Write Access: | Set ItemColor to IntegerVariable/Value |
Description
ItemColor sets the color of an individual item. The color is associated with the item, and not the window or the column. When the item scrolls, the color moves with the item. To change the color of an item that is already displayed, you must follow the set statement with a page statement that names this object.
This is passed a single value representing an RGB color. Individual red, green, and blue colors are converted to a single value by using the RGB function.
Set ItemColor 3 to (rgb(255, 0, 0)) // red
Set ItemColor 4 to clPurple
Set ItemColor 7 to clBtnFace
To change the color of an item that is already displayed, you must follow the set statement with a page statement that names this object.
Set ItemColor 7 to clBtnFace
send Page
| Col 1 | Col 2 |
|---|---|
| Note: | The rgb.pkg package contains names for most of commonly used colors and for all system colors. |