Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspGetMouse

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the x and y coordinates of the mouse position, relative to the top left corner of the window.

Syntax

DspGetMouse(X, Y)

X:

A locally declared variable used to store the x pixel coordinate of the mouse position, returned from this function.

Y:

A locally declared variable used to store the y pixel coordinate of the mouse position, returned from this function.

Note: Locally declared Cicode variables need to be used for X and Y, otherwise an "Incompatible Type" compile error may be generated.

Return Value

0 (zero) if successful, otherwise an error is returned. The X and Y variables are set to the mouse position.

DspAnGetPos, DspGetMouseOver, DspGetNearestAn, PageTransformCoords

Example

! If the mouse cursor is at x,y pixel coordinate 43,20;
DspGetMouse(X,Y);
! Sets X to 43 and Y to 20.

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in