grid

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the grid to {true | false}
Summary

Specifies whether dragged objects are snapped to a grid.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the grid to true
Values
NameTypeDescription
Value

The grid is true or false By default, the grid property is set to true.

RelatedKeyword: 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.