rectangle | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | rect | ||||||
Associations | stack, card, field, button, graphic, scrollbar, player, image | ||||||
Summary | Specifies the area within which an object is drawn. | ||||||
Introduced | 1.0 | ||||||
Changes | The use of the effective keyword with the rectangle property was introduced in version 1.1. In previous versions, the rectangle of the defaultButton included the heavy outline. | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: card, item, graphic Property: bottom, topRight, pixels, points, defaultButton, width, showFocusBorder, height, backSize, orientation, margins, windowManagerPlace Message: moveStack Command: revChangeWindowSize, export snapshot, crop Object: graphic Glossary: object, property, keyword, focus, vertex, stack window, integer | ||||||
Description | Use the rectangle property to find out how far an object extends, to move it, or to resize it. The four items of an object's rectangle describe the object's left, top, right, and bottom edges:
If the object is a stack, its rectangle is relative to the left and top of the screen, rather than the left and top of the stack window. The first two items of a card's rectangle are always zero. The third item is the height of the card, and the fourth is the width of the card.
If you specify the effective keyword, the rectangle includes the outline added by the showFocusBorder property. It also includes the heavy outline added to the defaultButton. If the showFocusBorder of the object is false, or the object is not currently focused, the effective rectangle is the same as the rectangle.
| ||||||
Tags | ui |