Error getting tags :
error 404Error getting tags :
error 404 globalLoc | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
globalLoc
Basics
Expander triangle
Type
Function
Syntax
the globalLoc of point globalLoc(point)
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the equivalent, in global coordinates, of a point given in local coordinates.
Examples

globalLoc("22,173")
put globalLoc(the mouseLoc) into screenLoc

Additional Comments
Expander triangle

Use the globalLoc function to translate between screen coordinates and window coordinates.

Parameters:

The point is any expression that evaluates to a point--a vertical and horizontal distance from the top left of the current stack, separated by a comma.

Value:

The globalLoc function returns two integers separated by a comma.

Comments:

In window coordinates, the point 0,0 is at the top left of the stack window. In screen coordinates, the point 0,0 is at the top left of the screen.

The point returned by the globalLoc function is relative to the top left of the screen. If the system has more than one monitor, the globalLoc function returns a point relative to the top left of the main screen.

The first item of the return value is the horizontal distance in pixels from the left edge of the screen to the location given by point. The second item of the return value is the vertical distance from the top edge of the screen to the location given by point.

User Comments
Expander triangle