QMed_GetAreaParts(areaRef; areaParts):error
areaRef Longint QMedical area reference
areaParts Longint Area parts
error Longint Error result

Returns the configuration of the visual parts of a scrollable QMedical plug-in area.

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

Parameter areaParts receives a value that describes the visual parts of the plug-in area. 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, you can test individual bits of the areaParts parameter using 4D's "Bit test" (??) bitwise operator. Use the part constants to address specific parts:

qmed_MenubarPart 1 Area menubar part
qmed_ToolsWidgetPart 2 Tools widget part
qmed_ZoomWidgetPart 3 Zoom widget part
qmed_FrameNavWidgetPart 4 Frame navigation widget part
qmed_CineWidgetPart 24 Cine widget part
qmed_MenubarMask 2 Mask for area menubar part
qmed_ToolsWidgetMask 4 Mask for tools widget part
qmed_ZoomWidgetMask 8 Mask for zoom widget part
qmed_FrameNavWidgetPartMask 16 Mask for frame navigation widget part
qmed_CineWidgetPartMask 0x01000000 Mask for cine widget part


  `Toggle the visibility of the menubar
$error:=QMed_GetAreaParts (gAreaRef;$areaParts)
If ($error=qmed_noErr)
  If ($areaParts ?? qmed_MenubarPart)
    $areaParts:=$areaParts ?- qmed_MenubarPart
    $areaParts:=$areaParts ?+ qmed_MenubarPart
  End if
  $error:=QMed_SetAreaParts (gAreaRef;$areaParts)
End if

Related commands

QMed_SetAreaParts Configures the visual parts of a scrollable QMedical plug-in area

QMedical © Escape
Generated by QDoc 2.8 on Wed, Jan 27, 2010 17:54:47