Livecode Wiki

Specifies the width of an object's border.Syntax:

set the borderWidth of <line> of <field> to <pixelWidth>


set the borderWidth of button "Cancel" to 1
set the borderWidth of this card to 24
set the borderWidth of line 5 of field 1 to 10

Use the borderWidth property to change the appearance of an object's border.

By default, the borderWidth of newly created objects is 2. By default, the borderWidth of a paragraph of text in a field is 0.

If the object's showBorder property is false, the borderWidth property has no effect.

The border's appearance and color is affected by the setting of the object's threeD property.


  • pixelWidth (integer): An integer between zero and 255.

See also: borderPattern (property),