Showing/Hiding Images on mouseLeave...

Ken Ray kray at sonsothunder.com
Sat Nov 16 19:00:01 EST 2002


Rob,

I hate to mention it (and I'm NOT implying it is the right thing to do, mind
you), but other apps suffer this same situation. SuperCard for a long time
did that, and one of the answers I got when I asked about it was that the
enter/leave messages need to come in pairs; that is, 'enter' sets a flag
that is cleared by 'leave', so if there was no 'enter', there can't be any
'leave'.

However, that said, since Rev and MC both get mouseMove messages that are
sent to the underlying targets, and since they *do* recognize that the
target of the mouseMove message changes when an object appears underneath
the mouse, I personally think the best approach would be to immediately send
the object a 'mouseEnter' when it appears, and then a 'mouseLeave' when it
exits. This keeps the enter/leave pairing, but also allows for the
flexibility with displayed objects.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Rob Cozens" <rcozens at pon.net>
To: <use-revolution at lists.runrev.com>
Sent: Saturday, November 16, 2002 11:05 AM
Subject: Re:Showing/Hiding Images on mouseLeave...


> >All I can deduct is that for some reason, the first time the mouse
> >leaves the 'over' image, no 'mouseLeave' message is being sent to
> >it! Only after the cursor has re-entered the image, and then
> >proceeds to leave again, does it work...
>
>
> Hi All,
>
> FWIW, I have found the same behavior applies to showing/hiding buttons.
> --
>
> Rob Cozens
> CCW, Serendipity Software Company
> http://www.oenolog.com/who.htm
>
> "And I, which was two fooles, do so grow three;
> Who are a little wise, the best fooles bee."
>
> from "The Triple Foole" by John Donne (1572-1631)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list