QG_SetCaptionColors(areaRef; foreColor; backColor):error
areaRef Longint QGrid area reference
foreColor Longint Foreground color
backColor Longint Backgroung color
error Longint Error result

Set the caption colors

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.

Parameters foreColor and backColor specify the foreground (text) and background caption color respectively. Colors must be expressed in 4D's RGB color notation (0x00RRGGBB - see OBJECT SET RGB COLORS in 4D's documentation). Parameter backColor also accepts the reserved value qg_NoFillColor, resulting to text drawn on transparent background.

NOTEWhen QG_SetCaptionColors is not called for a caption object, QGrid uses black text on white background.

Related commands

QG_GetCaptionColors Get the caption colors
QG_SetCaptionFont Set the caption font
QG_SetCaptionAlignment Set the caption text alignment