### QPx_SetAreaParts

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

Configures the visual 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 the visual parts of the plug-in area. It is a set of flags that can be constructed by combining with bitwise "or" any of the mask constants. Alternatively, you can 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

Example

``Display menubar, tools, and zoom widget` `` `C_LONGINT($error)` `C_LONGINT($areaParts)` `` `$areaParts:=qpx_MenubarMask | qpx_ToolsWidgetMask | qpx_ZoomWidgetMask` `` `$error:=QPx_SetAreaParts (gQPixArea;$areaParts)` ``

Related commands

QPx_GetAreaParts | Returns the configuration of the visual parts of a scrollable QPix plug-in area

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:43:49