QG_SetAreaBackgroundColor

QG_SetAreaBackgroundColor(areaRef; backColor):errorCode
areaRef Longint QGrid area reference
backColor Longint Area background color
error Longint Error result

Change the background color of the plug-in area

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

Parameter backColor specifies the background color. It must be expressed in 4D's RGB color notation (0x00RRGGBB - see OBJECT SET RGB COLORS in 4D's documentation).

NOTE If QG_SetAreaBackgroundColor is not called for a QGrid area, the plug-in will default to the background color set for the plug-in area in 4D's form editor.

Example

   // Set the plug-in area background color to 50% gray.

C_LONGINT($err)

$err:=QG_SetAreaBackgroundColor (xGrid;0x007F7F7F)
ASSERT($err=qg_noErr)

Related commands

QG_GetAreaBackgroundColor Get the background color of the plug-in area