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

AVEVA™ Plant SCADA

PageTransformCoords

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts Page coordinates to absolute screen coordinates.

Syntax

PageTransformCoords(hPage, iPageX, iPageY, iDisplayX, iDisplayY, iType)

hPage:

Page handle of the relevant Window.

PageX:

X coordinate of page coordinate.

iPageY:

Y coordinate of page coordinate.

iDisplayX:

Output parameter: Transformed X coordinate. Must be a Long type variable.

iDisplayY:

Output parameter: Transformed Y coordinate. Must be a Long type variable.

iType:

The value of output coordinate:

0 - Absolute screen coordinates

1 - Coordinates relative to Window origin

2 - Coordinates relative to Client rectangle origin

Return Value

0 – Success

269 – ERROR_BAD_HANDLE – hPage is not a valid Page handle

274 – ERROR_INVALID_ARG – either DisplayX, DisplayY or Type is invalid.

PageInfo, DspGetMouse, DspAnGetPos, DspGetAnExtent

See Also

Page Functions

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