rightMargin

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

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the rightMargin of group "Options" to 20
Values
NameTypeDescription
Value

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

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

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

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

An object's rightMargin property is equal to item 3 of its margins property.

Tagsui