Method VCrt():physicalPos() Foundation
Calculates the absolute position on the screen.
:physicalPos( <aRelativePos> ) --> aScreenPos
This method returns a two element array which contains screen coordinates of the physical screen.
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.
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.