QPx_GetAreaParts
QPx_GetAreaParts(areaRef; areaRef):error | |||
---|---|---|---|
![]() |
areaRef | Longint | QPix area reference |
![]() |
areaParts | Longint | Area parts |
![]() |
error | Longint | Error result |
Get the visibility configuration 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 receives a value that tells whether the parts of the plug-in area are visible or not. The received value is a set of flags that can be tested for specific parts by bitwise "AND" of any of the mask constants. Alternatively, test individual bits of the areaParts parameter using 4D's "Bit test" (??) bitwise operator. 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
// Toggle the visibility of the menubar C_LONGINT($error) C_LONGINT($areaParts) $error:=QPx_GetAreaParts (gQPixArea;$areaParts) If ($error=qpx_noErr) If ($areaParts ?? qpx_MenubarPart) $areaParts:=$areaParts ?- qpx_MenubarPart Else $areaParts:=$areaParts ?+ qpx_MenubarPart End if $error:=QPx_SetAreaParts (gQPixArea;$areaParts) End if
Related commands
QPx_SetAreaParts | Configure the visibility of the parts of a scrollable QPix plug-in area |