robiner@ganelon.usc.edu (Steve) (03/19/88)
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. Does anyone have any ideas on this? Please E-mail responses as I don't read this group regularly. Thanks in adavnce, =Steve= Robiner@usc.ganelon.edu Robiner@ganelon.usc.edu
mmt@dciem.UUCP (Martin Taylor) (03/26/88)
: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)