How To Send Before?

Mike Kerner MikeKerner at roadrunner.com
Mon Nov 11 12:01:50 EST 2013


Why should it be a separate message?  It's more of a front script for the
message.

I'm still a little confused why it's necessary - can't you just put the
code you need at the top or bottom of the handler?


On Mon, Nov 11, 2013 at 10:59 AM, Peter Haworth <pete at lcsql.com> wrote:

> I think you ave found a little anomaly though as it seems you can't send or
> dispatch a before/after message.
>
> Pete
> lcSQL Software
> On Nov 10, 2013 7:16 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:
>
> > Of course, what you guys suggest is so blindingly obvious.  I must be
> > looking at the screen for way too long.
> >
> > Thanks for the forehead slap.
> >
> > Regards,
> >
> > Scott Rossi
> > Creative Director
> > Tactile Media, UX/UI Design
> >
> >
> >
> >
> > On 11/10/13 4:18 PM, "Monte Goulding" <monte at sweattechnologies.com>
> wrote:
> >
> > >
> > >Why not:
> > >
> > >before mouseDown
> > >   DoMyStuff
> > >end mouseDown
> > >
> > >before mouseDoubleDown
> > >   DoMyStuff
> > >end mouseDoubleDown
> > >
> > >on DoMyStuff
> > >
> > >end DoMyStuff
> > >
> > >Alternatively seeing as before mouseDown should actually trigger before
> > >mouseDoubleDown you may want to just store some state in script local
> > >vars. As Mark pointed out you probably don't really want to run the same
> > >mouseDown code 3 times.
> > >
> > >Cheers
> > >
> > >Monte
> > >On 11/11/2013, at 10:31 AM, Scott Rossi wrote:
> > >
> > >> Now that we have the before/after additions to mouse events and
> chained
> > >> behaviors, how does one send or dispatch "before mouseDown"
> > >>
> > >> In a control's behavior, I have a "before mouseDown" handler that I
> want
> > >> to trigger from a "before mouseDoubleDown" handler.  But there doesn't
> > >> seem to be any way to send a mouse event in a before state (instead,
> the
> > >> standard "mouseDown" message gets sent).
> > >>
> > >> Can this be done?
> > >>
> > >> The problem I'm trying to solve is mouseDown not getting sent/trapped
> > >>when
> > >> a control is repeatedly pressed very quickly.  Using mouseDoubleDown
> to
> > >> call mouseDown is a way to address this issue, but as I said, there
> > >> doesn't seem to be any way send the mouseDown message "before" the
> > >>normal
> > >> mouseDown.
> > >>
> > >> Any ideas?
> > >>
> > >> (I tried using Jacque's time machine routine but it keeps sending my
> > >>stack
> > >> back to the point before I tried to send the before message.)
> > >>
> > >> Thanks & Regards,
> > >>
> > >> Scott Rossi
> > >> Creative Director
> > >> Tactile Media, UX/UI Design
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> 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
> > >
> > >--
> > >M E R Goulding
> > >Software development services
> > >Bespoke application development for vertical markets
> > >
> > >mergExt - There's an external for that!
> > >
> > >_______________________________________________
> > >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
> >
> _______________________________________________
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list