QPx_SetAreaCurrentTool

QPx_SetAreaCurrentTool(areaRef; areaRef):error
areaRef Longint QPix area reference
areaTool Longint Tool number
error Longint Error result

Set the currently selected tool in 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 areaTool specifies the tool to be selected. The designated tool must be enabled for the area (using QPx_SetAreaTools, or via Advanced Properties).

QPix defines the following constands for identifying tools:

qpx_PointerTool 0 Pointer tool
qpx_MarqueeTool 1 Marquee tool
qpx_ZoomTool 2 Magnifying lens (zoom) tool
qpx_HandTool 3 Free scrolling (hand) tool

Related commands

QPx_GetAreaCurrentTool Get the currently selected tool in a scrollable QPix plug-in area