🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #24856

Having problems with double-clicks and lists

#24856
From: jmm
Date: Sun, 07 Feb 1988 17:16
30 lines
1328 bytes
(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.           |
Technical Details
Message-ID: <6895@agate.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ucsd!ucbvax!agate!thoth8.berkeley.edu!jmm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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