Classes

Method VCrt():physicalPos() Foundation

Calculates the absolute position on the screen.

Syntax
:physicalPos( <aRelativePos> ) --> aScreenPos
Parameters
<aRelativePos> := { nRow, nCol }
This argument is a two element array with two numeric values. They indicate row and column position on the screen.
Return

This method returns a two element array which contains screen coordinates of the physical screen.

Description

The method :physicalPos() uses relative screen coordinates of a VCrt object (the origin is the upper left corner of the VCrt window), and calculates absolute coordinates (the origin is the upper left corner of the physical screen). This is important in determining the absolute position of the mouse pointer on the screen. When a VCrt object is defined as output device, mouse coordinates are relative to the window origin. If the function AppEvent() signals a mouse event, the first message parameter mp1 can be used for <aRelativePos> to determine the absolute position of the mouse pointer on the screen.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.