hiliteColor

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

Specifies the color of the background when an object, or text in an object, is highlighted.

Introduced1.0
Changes

The ability of an object to inherit its hiliteColor from the object's owner was introduced in version 1.1. In previous versions, if an object's hiliteColor was empty, the setting of the global hiliteColor property was used instead.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the hiliteColor of field "Comments" to "red"
set the hiliteColor of button ID 3 to "#336633"
set the hiliteColor to 255,255,0
Values
NameTypeDescription
Value

The hiliteColor of an object is a 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 hiliteColor for all objects is empty.

By default, the global hiliteColor property is set to the system highlight color.

RelatedKeyword: effective, field, button, menu, card, player, scrollbar, graphic, image
Property: hiliteFill, topColor, armFill, markerLineSize, backgroundPattern, menuMode, backgroundColor, style, lookAndFeel, markerDrawn
Command: global, group
Object: button, image, field, stack, graphic
Glossary: object, selection, property, select, tabbed button, highlight, object type, color reference, integer, color palette, button menu, keyword, hexadecimal, EPS, owner
Description

Use the hiliteColor property to specify the background color of the selected text in a field, or the highlighted color of a clicked object.

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

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

*Cross-platform note:* If the lookAndFeel is set to "Appearance Manager", standard and rectangle buttons are drawn by the operating system if the backgroundColor and backgroundPattern of the button and all of its owners is empty. In this case, the button's hiliteColor has no effect. Otherwise, the button is drawn by LiveCode. If the lookAndFeel is "Appearance Manager", button menus whose menuMode is set to "option" are always drawn by the operating system, and the setting of the button's hiliteColor does not affect them.

If the object's hilitePattern is set, the pattern is shown instead of the color specified by hiliteColor.

The global hiliteColor property specifies the background color of selected text in fields whose hiliteColor is empty, but does not affect other highlighted objects.

Tagsui