QPx_SetAreaParts(areaRef; areaRef):error
areaRef Longint QPix area reference
areaParts Longint Area parts
error Longint Error result

Configure the visibility of the parts of a scrollable QPix plug-in area

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

Parameter areaParts specifies which parts of the plug-in area will be visible or not. It is a set of flags that can be constructed by combining with bitwise "OR" any of the mask constants. Alternatively, set or clear individual bits of the areaParts parameter using 4D's "Bit set" (?+) and "Bit clear" (?-) bitwise operators. Use the part constants to address specific parts:

qpx_MenubarPart 1 Area menubar part
qpx_ToolsWidgetPart 2 Tools widget part
qpx_ZoomWidgetPart 3 Zoom widget part
qpx_MenubarMask 2 Mask for area menubar part
qpx_ToolsWidgetMask 4 Mask for tools widget part
qpx_ZoomWidgetMask 8 Mask for zoom widget part
qpx_PageNavWidgetPart 4 Page navigation widget part
qpx_PageNavWidgetPartMask 16 Mask for page navigation widget part


   // Display menubar, tools, and zoom widget


$areaParts:=qpx_MenubarMask | qpx_ToolsWidgetMask | qpx_ZoomWidgetMask

$error:=QPx_SetAreaParts (gQPixArea;$areaParts)

Related commands

QPx_GetAreaParts Get the visibility configuration of the parts of a scrollable QPix plug-in area