location | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | loc | ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image, group | ||||||
Summary | Specifies where an object is. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: pixels, height, windowManagerPlace, topRight, width, properties Message: moveStack Keyword: card, item, rectangle, point, control Glossary: object, property, relative coordinates, absolute coordinates, evaluate, read-only, expression Function: screenLoc, stacks Command: revChangeWindowSize, group, move Object: stack, card | ||||||
Description | Use the location property to move an object without resizing it, or to find out where an object is. The location of a stack is in absolute coordinates|absolute (screen) coordinates. The first item of a card's location property is equal to the width of stack div 2; the second item is equal to the height of stack div 2. The location of a group or control is in relative coordinates| relative (window) coordinates. 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. Changing the location of an object moves it to the new position without resizing it. To change an object's size, set its height, width, or rectangle properties. | ||||||
Tags | ui |