Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!apple!AppleLink.Apple.com!Griffiths.R From: Griffiths.R@AppleLink.Apple.com (Rob Griffiths) Newsgroups: comp.sys.mac.hypercard Subject: Re: Misc Easy HC Questions Message-ID: <10164@goofy.Apple.COM> Date: 11 Sep 90 23:59:21 GMT References: <11792@crdgw1.crd.ge.com> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 28 There have been a couple of recent questions concerning double clicking on objects. As far as I know, there is no truly easy way to check this...However, I normally use the following: on mouseup put the ticks into TM repeat until the mouseclick if (the ticks - TM) > 20 then -- too much time has transpired, cancel the handler. -- or, alternatively, perform a single-click action. -- (vary the double-click response speed by changing the "20" -- to another number, either higher or lower.) exit mouseup end if end repeat -- if we get here, user has double clicked -- so, put double-click action here! end mouseup Just attach this to the object you wish to check, and add the code to perform whatever actions you desire. One nice side benefit is that you can make a single click perform one action (for instance, display a menu), and a double click another (go directly to some card). If anyone has a more elegant solution (quicker? shorter?), I'd love to see it! rob