margins | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Specifies how much empty space is left on each side between an object's edges and its contents. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: image, integer, button, scrollbar, graphic, player, field, control Property: topMargin, pixels, formattedWidth, textAlign, formattedHeight, wideMargins, boundingRect, rectangle, rightMargin, bottomMargin, label, lookAndFeel, leftMargin, traversalOn Command: group Object: field Glossary: object, property, pixel, group, Unix, control, non-negative, integer | ||||||
Description | Use the margins property to control how close text within a button or field can come to the object's edges, how close objects in a group can come to the group's edges, and how the label of a graphic is displayed. If a single integer is specified, all four margins of the object are set to that number of pixels. If four integers are provided, the object's top, left, bottom, and right margins are set to each one respectively:
If the lookAndFeel is set to "Motif", controls require two pixels of margin space for the border that shows when the control is active control|active (focused). To avoid interfering with this border on Unix systems, set the margins property of groups to at least 2 if the group contains controls whose traversalOn property is set to true.
The margins setting of an image, player, or scrollbar has no effect. | ||||||
Tags | ui |