On 15.02.11 at 12:14 -0500 Nonsanity apparently wrote:
It would be better to do something like add another handler to the button:
on MouseUpWithHilite
set hilite of me to not hilite of me
mouseup
end MouseUpWithHilite
And send THAT message to the button from afar. This way, the existing
MouseUp handler in the button works as expected, and this message has the
same result as clicking the button (toggling the hilite in the process) and
enacting the MouseUp handler.
~ Chris Innanen
~ Nonsanity
Chris,
The above won't work as intended, it will turn the hilite on for good.
You would need to add a delay and reverse the hilite before
continuing with mouseUp.
The click command simulates user physically clicking the button, which
I believe was the effect that original poster wanted.
Robert
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode