Chapter 3
112
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.
Examples
The following statement sets the
buttonStyle
property to 1:
the buttonStyle = 1
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
buttonType
Syntax
member(
whichCastMember
).buttonType
the buttonType of member
whichCastMember
Description
Button cast member property; indicates the specified button cast member’s type. Possible values
are
#pushButton, #checkBox
, and
#radioButton
. This property applies only to buttons
created with the button tool in the Tool palette.
Example
This statement makes the button cast member Editorial a check box.
Dot syntax:
member("Editorial").buttonType = #checkBox
Verbose syntax:
set the buttonType of member "Editorial" to #checkBox
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...