QMed_SetAreaToolset(areaRef; areaTools):error
areaRef Longint QMedical area reference
areaTools Longint Area tools
error Longint Error result

Configures the tools popup menu 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 areaTools specifies the tools 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 areaTools parameter using 4D's "Bit set" (?+) and "Bit clear" (?-) bitwise operators. Use the tool constants to address specific tools:

qmed_PointerTool 0 Pointer tool
qmed_MarqueeTool 1 Marquee tool
qmed_ZoomTool 2 Magnifying lens (zoom) tool
qmed_HandTool 3 Free scrolling (hand) tool
qmed_VOITool 4 VOI tool
qmed_PixelValueTool 5 Pixel value tool
qmed_PointerMask 1 Mask for pointer tool
qmed_MarqueeMask 2 Mask for marquee tool
qmed_ZoomMask 4 Mask for zoom tool
qmed_HandMask 8 Mask for hand tool
qmed_VOIToolMask 16 Mask for VOI tool
qmed_PixelValueToolMask 32 Mask for pixel value tool


  `Set the plugin area tools to the VOI and pixel value tools
$areaTools:=qmed_VOITool | qmed_PixelValueTool
$error:=QMed_SetAreaTools (gAreaRef;$areaTools)

Related commands

QMed_GetAreaToolset Returns the configuration of the tools popup menu of a scrollable QMedical plug-in area

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