borderColor

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the borderColor of <object> to {empty | <colorName> | <RGBColor>}
set the borderColor of <line> of <field> to {empty | <colorName> | <RGBColor>}
Synonymsfourthcolor,markerfillcolor
Associationsstack, card, field, button, graphic, scrollbar, player, image, group
Summary

Specifies the color of an object's border.

Introduced1.0
Changes

The borderColor 's effect on grid lines in fields was introduced in version 2.0. In previous versions, the color of the grid lines was determined by the field's hiliteColor property.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
colorName

Any standard color name.

RGBColor

Consists of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.

Example
set the borderColor of field "Alert" to "red"
set the borderColor of last button to "#000000"
set the borderColor of scrollbar ID 1010 to "128,128,128"
set the borderColor of line 1 of field 1 to "255,0,0"
RelatedKeyword: effective, box, field, button, player, graphic, scrollbar, card, image
Property: bottomColor, borderPattern, textStyle, borderColor, showBorder, borderPixel, hGrid, penBack, vGrid, hiliteColor, markerFilled, style, threeD, menuMode, owner, topColor, selectionHandleColor
Command: group
Object: button, image, field, stack, graphic
Glossary: object, property, EPS, audio clip, owner, vertex, object type, keyword, button menu, video clip
Description

Use the borderColor property to specify the border color of an object or paragraph of text in a field.

By default, the borderColor for all objects is empty.

Setting the borderColor of an object to empty allows the borderColor of the object's owner to show through. Use the effective keyword to find out what color is used for the object, even if its own borderColor is empty.

If the object's showBorder property is false, the borderColor has no effect. If the object's threeD property is true, the topColor and bottomColor are used to draw the border, rather than the borderColor.

The setting of the borderColor property has different effects, depending on the object type:

Tip: To set the color of an image's border, set the borderColor of the card, stack, or group that owns the image.

If an object's borderPattern is set, the pattern is shown instead of the color specified by borderColor.

Tagsui