Skip to content

CurrentRowTextColor - DfBaseFormList

Sets the text color of the current row

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

Syntax

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

Description

CurrentRowTextColor sets the text color of the current row. 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.

If no value is specifically set, a default color setting is used. The default is stored in a global integer named default_highlight_row_color. Its default value is aqua (rgb(0, 255, 255)). You may change this value in your program. You may also change a default value within your registry by changing the key TableRowColor. If you set the key TableRowColor in the registry, you must use a string value in the form of red, green, blue (e.g., 0, 255, 0 is green).

Set CurrentRowTextColor to (rgb(255, 0, 0)) // red

Set CurrentRowTextColor to clPurple

Set CurrentRowTextColor to clBtnFace
Col 1 Col 2
Note: The rgb.pkg package contains names for most of commonly used colors and names for all system colors.