Path: utzoo!mnetor!uunet!husc6!rutgers!ucsd!ucbvax!agate!thoth8.berkeley.edu!jmm From: jmm@thoth8.berkeley.edu Newsgroups: comp.sys.mac Subject: Having problems with double-clicks and lists Message-ID: <6895@agate.BERKELEY.EDU> Date: 7 Feb 88 17:16:43 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: jmm@thoth8.berkeley.edu () Organization: University of California, Berkeley Lines: 30 (What's the status of comp.sys.mac.programmer? We get a few messages in it at our site, but is it 'official' and reliable?) Question #1: I'm having trouble detecting double-clicks when I'm using lists. LClick doesn't seem to want to ever return true, no matter how fast I punch the button. Here's a skeleton of my code: if GetNextEvent(theEvent,everyEvent) then case theEvent.what of mouseDown: MouseCode(theEvent); ... procedure MouseCode(theEvent:eventrecord); begin ... SetPort(windowWithTheList); GlobalToLocal(theEvent.where); if LClick(theEvent.where,theEvent.modifiers,myList) then stuff; ... end; "stuff" is never executed. What's going on? / James Moore / | jmm@bartleby.berkeley.edu / / |--------------------------------------------| / Ma ta Gaeilge agut, / | Nil aon speis ag Ollscoile na | / scriobh i! / | California im bharulacha fein. |