QPix Command Reference
![]() |
![]() ![]() |
QPx_GetAreaCmdStatus(areaRef; cmdNumber; cmdStatus):error | |||
![]() |
areaRef | Longint | QPix area reference |
![]() |
cmdNumber | Longint | Command number |
![]() |
cmdStatus | Longint | Command status |
![]() |
error | Longint | Error result |
Returns the status of a QPix plug-in area command. Commands are attached to user interface elements, typically to menu items in the area menubar.
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 cmdNumber specifies the command whose status will be retrieved.
Parameter cmdStatus receives a value that describes the status of the command. This value is a bitwise "or" combination of the following constants:
qpx_CmdStatusEnabled | 1 | Command is enabled |
qpx_CmdStatusChecked | 2 | Command is checked |
QPix defines the following constants for identifying commands (parameter cmdNumber):
qpx_CmdAbout | 4096 | About... menu item |
qpx_CmdImport | 1 | Import... menu item |
qpx_CmdImportURL | 2 | Import URL... menu item |
qpx_CmdAcquire | 3 | Acquire... menu item |
qpx_CmdExport | 4 | Export... menu item |
qpx_CmdRevert | 5 | Revert menu item |
qpx_CmdImageInfo | 6 | Image Info... menu item |
qpx_CmdPageSetup | 10 | Page Setup... menu item |
qpx_CmdPrint | 11 | Print... menu item |
qpx_CmdPrefs | 15 | Preferences... menu item |
qpx_CmdCut | 258 | Cut menu item |
qpx_CmdCopy | 259 | Copy menu item |
qpx_CmdPaste | 260 | Paste menu item |
qpx_CmdClear | 261 | Clear menu item |
qpx_CmdCrop | 262 | Crop menu item |
qpx_CmdSelectAll | 263 | Select All menu item |
qpx_CmdFlipHorz | 514 | Flip->Horizontal menu item |
qpx_CmdFlipVert | 515 | Flip->Vertical menu item |
qpx_CmdRotate180 | 770 | Rotate->180° menu item |
qpx_CmdRotate90CW | 771 | Rotate->90° CW menu item |
qpx_CmdRotate90CCW | 772 | Rotate->90° CCW menu item |
qpx_CmdRotate | 773 | Rotate->Arbitrary... menu item |
qpx_CmdInvert | 1025 | Invert menu item |
qpx_CmdFilter | 1026 | Filter... menu item |
qpx_CmdFilterAgain | 1027 | Filter again menu item |
qpx_CmdImageSize | 1281 | Image Size... menu item |
qpx_CmdZoomIn | 1537 | Zoom In menu item |
qpx_CmdZoomOut | 1538 | Zoom Out menu item |
qpx_CmdNormalSize | 1539 | Normal Size menu item |
qpx_CmdZoom6 | 1540 | 6 % zoom popup menu item |
qpx_CmdZoom12 | 1541 | 12 % zoom popup menu item |
qpx_CmdZoom25 | 1542 | 25 % zoom popup menu item |
qpx_CmdZoom50 | 1543 | 50 % zoom popup menu item |
qpx_CmdZoom100 | 1544 | 100 % zoom popup menu item |
qpx_CmdZoom200 | 1545 | 200 % zoom popup menu item |
qpx_CmdZoom400 | 1546 | 400 % zoom popup menu item |
qpx_CmdZoom800 | 1547 | 800 % zoom popup menu item |
qpx_CmdZoom1600 | 1548 | 1600 % zoom popup menu item |
qpx_CmdPointerTool | 2049 | Pointer tool popup menu item |
qpx_CmdMarqueeTool | 2050 | Marquee tool popup menu item |
qpx_CmdZoomTool | 2051 | Zoom tool popup menu item |
qpx_CmdHandTool | 2052 | Hand tool popup menu item |
Related commands
QPx_DoAreaCommand | Executes a QPix plug-in area command |