leftMargin

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the leftMargin of {<button> | <field> | <group>} to <pixels>
Associationsbutton, field, group
Summary

Specifies how close text within an object can come to the object's left edge, and how close objects in a group can come to the group's left edge.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the leftMargin of field "Melting Point" to 10
set the leftMargin of last button to the leftMargin of first button
Values
NameTypeDescription
Value

The leftMargin is a non-negative integer. By default, the leftMargin of a newly created field is 8. If the field's wideMargins property is true, the field's leftMargin is set to 14. The default leftMargin setting for a button or group is 4.

RelatedKeyword: default, item, button, field, integer
Property: left, wideMargins, pixels, margins, firstIndent
Command: group
Object: field
Glossary: object, property, non-negative, group
Description

Use the leftMargin property to change the amount of blank space between an object's left edge and its contents.

The leftMargin property of a field or button specifies how many blank pixels are left between the object's left edge and the left edge of its text. The leftMargin of a group specifies how far the group's left edge extends below its leftmost object.

An object's leftMargin property is equal to item 1 of its margins property.

Tagsui