focusColor

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

Specifies the color of the outline around the active control or the field with the insertion point.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the focusColor of me to "black"
set the focusColor of button "Help" to 128,128,255
Values
NameTypeDescription
Value

The focusColor of an object is any valid color reference. The colorName is any standard color name.

The 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.

By default, the focusColor for all objects is empty.

RelatedKeyword: effective, card, button, player, graphic, scrollbar, field, image
Property: style, owner, traversalOn, showFocusBorder, focusColor
Command: focus, group
Object: audioClip, button, stack, videoClip
Glossary: object, property, color palette, focus, active control, hexadecimal, integer, keyword, object hierarchy, color reference, insertion point, object type, EPS
Description

Use the focusColor property to specify the outline color of an object when it's active.

Setting the focusColor of an object to empty allows the focusColor 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 focusColor is empty.

If the focusColor is not set for any object in the object hierarchy, the system setting is used.

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

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

The focusColor property has no effect on controls whose showFocusBorder property is set to false.

If the lookAndFeel is set to "Macintosh" or "Appearance Manager", the focusColor affects only fields.

Tagsui