Error getting tags :
error 404Error getting tags :
error 404 localLoc | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
localLoc
Basics
Expander triangle
Type
Function
Syntax

the localLoc of globalPoint localLoc(globalPoint)

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the equivalent, in local coordinates, of a point given in global coordinates.
Examples

localLoc((90,174))
localLoc(the location of field 1)

Additional Comments
Expander triangle

Use the localLoc function to translate between screen 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 screen, separated by a comma.

Value:

The localLoc 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 localLoc function is relative to the top left of the current stack.

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

User Comments
Expander triangle