QG_GetAreaFlags

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

Get various options of a QGrid area

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

Parameter areaFlags receives a set of flags. The received value can be tested for specific options by bitwise "AND" of any of the mask constants. Alternatively, you can test individual bits of the areaFlags parameter using 4D's "Bit test" (??) bitwise operator. 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

Example

   // Toggle the display of caption text in tooltips.

C_LONGINT($err;$areaFlags)

$err:=QG_GetAreaFlags (xGrid;$areaFlags)
ASSERT($err=qg_noErr)

If ($areaFlags ?? qg_TooltipsEnabled)
   $areaFlags:=$areaFlags ?- qg_TooltipsEnabled
Else 
   $areaFlags:=$areaFlags ?+ qg_TooltipsEnabled
End if 

$err:=QG_SetAreaFlags (xGrid;$areaFlags)
ASSERT($err=qg_noErr)

Related commands

QG_SetAreaFlags Configure various options of a QGrid area