Specifies where an object is.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the location of object to point
# Examples
if the location of button 1 is within the rect of field 1 then selectIt
set the location of this stack to the mouseLoc
# Description
The location of a stack is in absolute coordinates. The first item of a card 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.
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 size, set its height, width, or rectangle properties.
# Tags
ui,
# See
- **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