Skip to content

piCaptionBackColor - cCJGrid

The background color of the column headers and footers

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

Syntax

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

Description

This color is used as the backcolor of the column headers and footers in the grid and the column headers in the Field Chooser.

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

For column headers, this color only works with the following peColumnStyles: xtpColumnShaded and xtpColumnFlat. With column footers, the color also works for the xtpColumnExplorer style (this style produces a "flat" footer).

See Also

piCaptionForeColor