QMedical Command Reference
![]() |
![]() ![]() |
QMed_SetAreaParts(areaRef; areaParts):error | |||
![]() |
areaRef | Longint | QMedical area reference |
![]() |
areaParts | Longint | Area parts |
![]() |
error | Longint | Error result |
Configures 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 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:
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 |
Example
`Display menubar, tools, and zoom widget C_LONGINT($error) C_LONGINT($areaParts) $areaParts:=qmed_MenubarMask | qmed_ToolsWidgetMask | qmed_ZoomWidgetMask $error:=QMed_SetAreaParts (gAreaRef;$areaParts) |
Related commands
QMed_GetAreaParts | Returns the configuration of the visual parts of a scrollable QMedical plug-in area |