Update on defaultStack problem

Peter Haworth pete at mollysrevenge.com
Tue Feb 1 14:02:26 EST 2011

I'm not entirely happy with using double click for the user interface either - I may switch to a button or something as you suggest.

I do think this is either  software or a documentation bug though.  I know it's unusual to have mouseUp and mouseDoubleup for the same control but there's nothing in the dictionary that indicates it causes problems.  If the dictionary had mentioned that mouseDoubleup doesn't work in these circumstances, I wouldn't have gone down this path in the first place.  Maybe I should enter a dictionary user comment?

I did see the doubleclickinterval in the dictionary but preferred not to "discombobulate the user" as the dictionary so elegantly puts it!

Pete Haworth

On Feb 1, 2011, at 10:33 AM, Richard Gaskin wrote:

> Peter Haworth wrote:
> > On Feb 1, 2011, at 6:55 AM, DunbarX at aol.com wrote:
> >
> >> I have always had this problem, that the engine will not distinguish
> >> the two "ups" if they are in the same handler.
> >>
> >> I use the old HC method:
> >>
> >> on mouseUp
> >>   wait 15 --your comfort level
> >>   if the mouseCllick then doDoubleStuff
> >>   else doSingleStuff
> >> end mouseUp
> >
> > Thanks Craig, I'll give that a try.  Sounds like a bug in LC.
> Not a bug, it's just extremely rare that the two messages are used in the same control.
> Personally, I'd sooner at a "Revert" control than ask a user to double-click, but maybe that's just me.
> DunbarX's script will do the trick, but if you like you can account for the user-settable nature of the double click interval by using the LC global property named -- you guessed it -- doubleClickInterval.
> To be uber-correct in such distinctions you may also want to take into account the doubleClickDelta, but that may be overkill for a simple app.
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
> _______________________________________________
> 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