AW: How to hilite a checkbox with send mouseup?
Robert Brenstein
rjb at robelko.com
Tue Feb 15 12:30:20 EST 2011
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
More information about the use-livecode
mailing list