globalLoc | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the equivalent, in globalcoordinates, of a point given in localcoordinates. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: item, point, relative Command: revSetVideoGrabberRect Glossary: relative coordinates, integer, absolute coordinates, return, return value Control Structure: function | ||||||
Description | Use the globalLoc function to translate between absolute coordinates|screen coordinates and windowcoordinates. 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. | ||||||
Tags | ui |