topRight | |||||||
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 right corner. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: pixels, rectangle, height, bottomLeft, bottomRight, location, width, properties, topLeft Glossary: object, property, stack window, absolute coordinates, read-only, expression, relative coordinates, parameter, integer, evaluate Keyword: card, item, point, rectangle, top, control Constant: right Object: stack, card Command: group Function: stacks | ||||||
Description | Use the topRight property to change the placement of a control or window. The topRight of a stack is in absolute coordinates|absolute (screen) coordinates. The first item (the right) of a card's topRight property is always the width of the stack window; the second item (the top) is always zero. The topRight 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 topRight 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 |