MouseDown on Enter

Alex Tweedly alex at tweedly.net
Sat Dec 29 11:33:49 EST 2018


Not sure that's going to work ... if the mouse button is being held 
down, you won't get a "mouseenter" event. Dict says:

> If the mouse button is down when the mouse pointer enters the control,
>
> the *mouseEnter* message is not sent unless the mouse button is released
>
> while the pointer is still in the control.
>
So you will probably need to use  mousedown and mousestilldown to track 
that case.

Alex.



On 29/12/2018 14:45, Richmond via use-livecode wrote:
> This may rank as one of the goofiest questions I've ever asked: Oh, 
> well, here goes:
>
> Imagine a mosaic of faux buttons if you will.
>
> Each of these buttons will play a tone if I drag my mouse into it:
>
> on mouseEnter
>
>   play audioClip "x.aiff"
>
> end mouseEnter
>
> All well and good . . .
>
> BUT, Richmond wants more . . .
>
> I want to get different results from a simple mouseEnter
>
> and a mouseEnter while the left-click button is down.
>
> Richmond.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list