topLeft | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image, group | ||||||
Summary | Specifies the location of the specified object's upper left corner. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: left, height, topRight, properties, width, pixels Glossary: property, absolute coordinates, read-only, expression, relative coordinates, parameter, integer, evaluate, object Keyword: card, item, point, rectangle, top, control Constant: left Object: stack Command: group Function: selectedLoc, stacks | ||||||
Description | Use the topLeft property to change the placement of a control or window. The topLeft of a stack is in absolute coordinates|absolute (screen) coordinates. The first item (the left) of a card's topLeft property is always zero; the second item (the top) is always zero. The topLeft 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 topLeft 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 |