How To Send Before?

Peter Haworth pete at lcsql.com
Sun Nov 10 21:50:53 EST 2013


How about

before mousedown
    mymousedowstuff
End mousedown

on mousedoubledown
   mymousedownstuff
end mousedoubledown

command mymousedownstuff
   Do your stuff here
end mymousedownstuff

Pete
lcSQL Software
On Nov 10, 2013 4:21 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:

> Here's my thinking.  Forget any of the before/after stuff for the momentŠ
>
> With a standard mouseDown handler, the technique I've used in the past to
> make sure all mouse clicks are processed is to use mouseDoubleDown.
>
>
> on mouseDone
>    do stuff
> end mouseDown
>
> on mouseDoubleDown
>   mouseDown
> end mouseDoubleDown
>
>
>
> Now, what I'm trying to do is move this same logic into before handlers:
>
> before mouseDown
>    do stuff
> end mouseDown
>
> before mouseDoubleDown
>     mouseDown <----  how does one call "before mouseDown" here??????
> end mouseDoubleDown
>
>
>
>
> The problem with the above is a standard mouseDown is sent; mouseDown is
> not sent before.
> There doesn't seem to by any way to dispatch or send before.
>
> See my problem?
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 11/10/13 4:06 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:
>
> >Scott-
> >
> >Sunday, November 10, 2013, 3:31:58 PM, you wrote:
> >
> >> Any ideas?
> >
> >My brain is getting tongue-tied trying to work this out.
> >
> >Do you want before mouseDown to happen after before mouseDoubleDown
> >and before mouseDoubleDown in addition to the before mouseDown that
> >happens before mouseDown or are you trying to change the order of
> >events?
> >
> >Here's what you should be seeing for a double-click:
> >
> >before mouseDown
> >mouseDown
> >after mouseDown
> >before mouseUp
> >mouseUp
> >after mouseUp
> >before mouseDoubleDown
> >mouseDoubleDown
> >after mouseDoubleDown
> >before mouseDoubleUp
> >mouseDoubleUp
> >after mouseDoubleUp
> >before mouseDown
> >mouseDown
> >after mouseDown
> >before mouseUp
> >mouseUp
> >after mouseUp
> >
> >--
> >-Mark Wieder
> > ahsoftware at gmail.com
> >
> >
> >_______________________________________________
> >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
> >
>
>
>
> _______________________________________________
> 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