Skip to content

piSelectedRowForeColor - cCJGrid

The text color of selected rows when the grid does not have the focus

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer piSelectedRowForeColor
Access Type Syntax
Read Access: Get piSelectedRowForeColor to IntegerVariable
Write Access: Set piSelectedRowForeColor to IntegerVariable/Value

Description

A grid row is selected when the user clicks on it. You must set pbSelectionEnable to True for this property to have any effect.

By default, the selected row color when the grid does not have the focus is the same as when the grid does have the focus (see piHighlightForeColor).

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 piSelectedRowForeColor to (rgb(255, 0, 0)) // red
Set piSelectedRowForeColor to clPurple
Set piSelectedRowForeColor to clBtnFace

See Also

piSelectedRowBackColor | pbSelectionEnable