| Parameter | Description |
|---|---|
| iItem | The item number |
Property Integer ItemColor
| Read Access: | Get ItemColor iItem to IntegerVariable |
| Write Access: | Set ItemColor iItem to IntegerVariable/Value |
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
| Note: | The rgb.pkg package contains names for most of commonly used colors and for all system colors. |