top | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image, group | ||||||
Summary | Specifies how far an object's top edge is from the top of the window or screen. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: control, integer, rectangle, card Property: script, pixels, yOffset, bottom Command: group Object: stack Glossary: object, property, OS X, error, absolute coordinates, menu bar, Mac OS, relative coordinates, negative | ||||||
Description | Use the top property to change the vertical placement of a control or window. The top of a stack is in absolute (screen) coordinates(glossary). The top of a card is always zero; setting the top of a card does not cause a script error, but it has no effect. The top of a group or control is in relative (window) coordinates(glossary). Changing the top of an object shifts it to the new position without resizing it. To change an object's height, set its height or rectangle property. The height property of an object is equal to its bottom minus its top. *Cross-platform note:* When setting the top of a window on a MacOS or OS X system, be sure to allow 20 pixels at the top of the screen for the Mac OS menu bar. | ||||||
Tags | ui |