hiliteColor | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | markercolor,thirdcolor | ||||||
Associations | stack, 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. | ||||||
Introduced | 1.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. | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: 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. | ||||||
Tags | ui |