grid | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Specifies whether dragged objects are snapped to a grid. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: top, point, rectangle Constant: left Property: location, slices, height, properties, width, gridSize Command: move Glossary: object, property, pixel, constrain, command | ||||||
Description | Use the grid property to align objects easily. If the grid property is set to true, any object the user moves or resizes is moved or resized to the nearest point on the grid. If the object is moved, its top and left are multiples of the gridSize. If the object is resized, its height and width are multiples of the gridSize. If the grid is false, moved and resized objects are not constrained and are moved to exactly where the user puts them. The setting of the grid property does not affect the move command, or setting properties such as the location or rectangle of the object, or nudging objects a single pixel with the arrow keys. Only mouse movements are affected. |