TextColor - cCJGrid
The default grid text color
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer TextColor
| Access Type | Syntax |
|---|---|
| Read Access: | Get TextColor to IntegerVariable |
| Write Access: | Set TextColor to IntegerVariable/Value |
Description
The default grid text color
Default is clNone.
This is passed a single value representing an RGB color, which can be a constant representing a Standard Color or a System Color, or a set of R, G and B values. Individual Red, Green, and Blue colors are converted to a single value by using the RGB function.
Set TextColor to (rgb(255, 0, 0)) // red
Set TextColor to clPurple
Set TextColor to clBtnFace
Cell Display Formatting
If you want to dynamically change the text color of a grid column (and other cell display formatting), do so in OnSetDisplayMetrics using ComForeColor.
See Also