Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!uw-beaver!Teknowledge.COM!unix!mxmora From: mxmora@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.hypercard Subject: Re: Misc Easy HC Questions Message-ID: <16194@unix.SRI.COM> Date: 13 Sep 90 16:53:06 GMT References: <11792@crdgw1.crd.ge.com> <10164@goofy.Apple.COM> <10179@goofy.Apple.COM> Reply-To: mxmora@unix.UUCP (Matt Mora) Organization: SRI International, Menlo Park, CA Lines: 61 In article <10179@goofy.Apple.COM> rmh@apple.com (Rick Holzgrafe) writes: > >Just a friendly warning... the Apple Thought Police will getcha if you >break a basic rule about clicking: NEVER WAIT FOR THE SECOND CLICK. You > >Instead, I'd suggest something like the following, placed in the script of >your stack. (Forgive any syntax errors, this is typed on the fly.) > >function isDoubleClick > global lastClickTime, lastClickItem > put the ticks into TM > if TM - lastClickTime < 20 and the id of the target is lastClickItem then ^^ What? stuff deleted > >Now, don't flame me about any of this - I don't work for the ATP. I just >don't like seeing people dragged screaming from their beds in the middle >of the night. :-) :-) :-) ATP is going to come and revoke your programming license for using a hardcoded number for the double click time interval. Hypercard already breaks enough Human Interface rules without the help from crazy DTS engineers. :-) Included is a XFCN that gets the correct double click time from the parameter ram. > >========================================================================== >Rick Holzgrafe | {sun,voder,nsc,mtxinu,dual}!apple!rmh >Software Engineer | AppleLink HOLZGRAFE1 rmh@apple.com >Apple Computer, Inc. | "All opinions expressed are mine, and do >20525 Mariani Ave. MS: 3-PK | not necessarily represent those of my >Cupertino, CA 95014 | employer, Apple Computer Inc." Boy, and you work at apple. :-) (This file must be converted with BinHex 4.0) :%'4LE'0XD@0VG'PYC5jcDA3!8dP8)90*9#%!!!!!!RX!!!!!99*6593K!!%!!!* lFNaKG3%!!!!!!!!!!J!44%*-3faTBfY8D@eP,RKQBfi!!!!!!!!!!@!$!!C!J0A 1!"X4-J!,eCJ!'hVH!3i!)!%!!3i!)!!!!!!!'a&-2cmr2cmr2cm"!+-9!b@M&3- R!!!#M`!!!!!!!!(e!!!!!-Yk!!!!!!!!!!#f43!!"!J)3!#8J!%1"[a"F!+MIrm )!($JM##!#BdJ5R5!cZ)%4"SM%"(#C!LE0'2@8%R6TS`,2'E'Z"&!m)I0QcBYiX4 TXDI2R`&(94K3`UH!4`)*3!4K!!BML`%+,$@!!`C8!e0rq)"kB1S4Ee!46%hL`Z) !G91Ec,'i30G8+Zjk+Sd))--SRaVVpZSC)#q(F$d&j1e3L'!!*Q!F"-4LC)J6!)" m"Y(hced)C!QFJ4')iB8#%@m!)#!4QJ'-&`!Jd!!J3B-X!@3%8!JJ34JB!4+d49( fMaqX!#5qJ2Mbj"d!"8kJ1E(L$pi,"L$FL"lLVMQF(b+`48(@'i9d"N'U`dZ""!# 8((`!(!$!j!8,!%L'1i(8JJd!1+P4I((LC6L8*mP"%F389$bK44&5,2F20-pj"`! $+8L(J(RK,8JH!&5J0a&llX%R(b64TIB$$`"mJ)3E#lk!J"0Z8D%IIri"U&`9644 )B),--B2%13-J`%*C#+"J4"C2Z)#,!2#iB+)ErM$cJJ%[(-$L2jCJmF5)!2acBT0 EXM1P!d3qfH@8-+6`"3!NI3-"-2bjm)N6GBa8%K0*$,(%FJ'p!158S,6jCKe0"*' %%b!8#J*#""Q%N!"#!$#8!"')$-!S"`$)X&KMM`@N!'3r*E!,#Jb3!#%''f1FP") G,*8"&a%!!!:-- ___________________________________________________________ Matthew Mora | my Mac Matt_Mora@sri.com SRI International | my unix mxmora@unix.sri.com ___________________________________________________________