ItemTextColor - DfBaseFormList
Sets the text 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 ItemTextColor
| Access Type | Syntax |
|---|---|
| Read Access: | Get ItemTextColor to IntegerVariable |
| Write Access: | Set ItemTextColor to IntegerVariable/Value |
Description
ItemTextColor sets the text 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 ItemTextColor 3 to (rgb(255, 0, 0)) // red
Set ItemTextColor 4 to clPurple
Set ItemTextColor 7 to clBtnFace
| Col 1 | Col 2 |
|---|---|
| Note: | The rgb.pkg package contains names for most of commonly used colors and for all system colors. |