Lingo Dictionary > A-C > buttonStyle

 

buttonStyle

Syntax

the buttonStyle

Description

Movie property; determines the visual response of buttons when the user rolls the pointer off them. This property applies only to buttons created with the Button tool in the Tool palette.

The buttonStyle property can have these values:

0 (list style: default)—Subsequent buttons are highlighted when the pointer passes over them. Releasing the mouse button activates the script associated with that button.

1 (dialog style)—Only the first button clicked is highlighted. Subsequent buttons are not highlighted. Releasing the mouse button while the pointer is over a button other than the original button clicked does not activate the script associated with that button.

This property can be tested and set in any type of script.

Example

The following statement sets the buttonStyle property to 1:

the buttonStyle = 1

Example

This statement remembers the current setting of the buttonStyle property by putting the current buttonStyle value in the variable buttonStyleValue:

buttonStyleValue = the buttonStyle

See also

checkBoxAccess, checkBoxType