Livecode Wiki
Advertisement

Determines whether a button is highlighted.

Built-in Message handler[]

Syntax:

set the hilite of <button> to {true | false}

Examples:

set the hilite of button "Option 1" to true
set the hilite of me to not the hilite of me

Use the hilite property to provide visual feedback when a button is pressed, or to reflect the state of a setting.

The effect of the hilite property on a button depends on the style, threeD, and hiliteBorder of the button.

If the button's hiliteBorder and threeD properties are true, the topColor and bottomColor (or topPattern and bottomPattern) are reversed when the button is highlighted.

If a radio button's or checkbox's hilite is true, the radio button or checkbox option is selected. If the hilite is false, the option is not selected.

For buttons of any other style, if the hilite is true, the button's background is drawn in the hiliteColor (or the hilitePattern, if the button's hiliteFill property is true).

See also: button (object), showHilite (property), hilitedIcon (property), hiliteFill (property), hilitedButtonName (property), hiliteColor (property), hiliteBorder (property), bottomPattern (property),

Advertisement