Path: utzoo!dciem!mmt From: mmt@dciem.UUCP (Martin Taylor) Newsgroups: comp.sys.mac.hypercard Subject: Re: How to trap double-clicks? Message-ID: <2695@dciem.UUCP> Date: 25 Mar 88 23:23:56 GMT Article-I.D.: dciem.2695 Posted: Fri Mar 25 18:23:56 1988 References: <7744@oberon.USC.EDU> Reply-To: mmt@dciem.UUCP (Martin Taylor) Organization: D.C.I.E.M., Toronto, Canada Lines: 28 Summary: :Does anyone know of a simple routine for handling or trapping :for double-clicks. : :I have written a button script as follows: : :on mouseUp : Set the highlight of me to not the highlight of me :end mouseUp : :When I double click on it quickly, it misses the second click, and :only changes once. I can't wait in the button for a second click, :because I need to check in other buttons for clicks during the same time. : I posted an item on this some months ago, and got absolutely no response. My attempt was to make a generic double-click handler, using the ticks between clicks as the criterion for whether there were two clicks or a double click. It works fine EXCEPT IN BUTTONS (card buttons only? I forget). In buttons, a second click within about 20 ticks (I forget the exact number) is missed entirely. I did a lot of experiments with this. I hope it is fixed in Version 1.1 of HyperCard. -- Martin Taylor ...uunet!dciem!mmt mmt@zorac.arpa Talk, n. To commit an indiscretion without temptation, from an impulse without purpose. (Ambrose Bierce, 1842-1914?, The Devil's Dictionary)