QG_SetAreaFlags(areaRef; areaFlags):errorCode
areaRef Longint QGrid area reference
areaFlags Longint Area flag options
error Longint Error result

Configure various options of a QGrid area

The QGrid area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qg_paramErr is returned.

Parameter areaFlags is a set of flags. Construct it by bitwise "OR" of any of the mask constants. Alternatively, you can set or clear individual bits of the areaFlags parameter using 4D's "Bit set" (?+) and "Bit clear" (?-) bitwise operators. Use the flag constants to address specific flags:

qg_CellScroll 21 Scroll by whole cells
qg_TooltipsEnabled 22 Display tooltips with the cell caption text
qg_CellScrollMask 0x00200000 Mask for scrolling by whole cells
qg_TooltipsEnabledMask 0x00400000 Mask for displaying tooltips with the cell caption text


   // Set the area to scroll by cell and display the caption in tooltips.


$areaFlags:=qg_CellScrollMask | qg_TooltipsEnabledMask

$err:=QG_SetAreaFlags (xGrid;$areaFlags)

Related commands

QG_GetAreaFlags Get various options of a QGrid area