topMargin

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

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the topMargin of button "OK" to 10
Values
NameTypeDescription
Value

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

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

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

The topMargin property of a field specifies how many blank pixels are left between the object's top edge and its contents. The topMargin of a group specifies how far the group's top edge extends below its uppermost object.

An object's topMargin property is equal to item 2 of its margins property.

Tagsui