Make a optionMenu button ("opt1") and a regular button. The default option menuItems will be the usual "Choice 1", "Choice 2" and "Choice 3"
In the script of the optionMenu:
Code: Select all
on menuPick pMenuItemName
if pMenuItemName = "choice 2" then answer random(999)
end menuPick
Code: Select all
on mouseUp
set the menuHistory of btn "opt1" to "1" -- commenting this out makes the option not fire if "Choice 2" is already displayed
set the menuHistory of btn "opt1" to 2
end mouseup
But not remotely. Is this normal behavior? It tripped me up until I played around with it.
In any other menu-style button, where the label is not displayed, the menuPick handler will fire all the time, regardless of any previous remote selections.
Craig