Article View: comp.sys.mac
Article #24857LClikLoop routines and problem with LSPascal
From: jmm
Date: Sun, 07 Feb 1988 20:27
Date: Sun, 07 Feb 1988 20:27
30 lines
1435 bytes
1435 bytes
given the following code: ... theList^^.lClikLoop:=@ListClickRoutine; ... function ListClickRoutine:Boolean; begin ListClickRoutine:=true; end; ... if LClick(theEvent.where,theEvent.modifiers,theList) then ... ... The call to LClick doesn't change the selected cell, and immediately exits. However, if I put a stop sign on the last end; statement of ListClickRoutine, and then choose the Go-Go option, LClick will track the mouse and select the appropriate cells (albeit slowly). (Note that the ONLY statement in ListClickRoutine is the assignment given. It didn't work with other statements above that one either.) Any idea what's going on? On a related note, what are the limits of what you can do inside a LClikLoop routine? Can it use global variables? / 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:
<6898@agate.BERKELEY.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!rutgers!ucsd!ucbvax!agate!thoth8.berkeley.edu!jmmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!rutgers!ucsd!ucbvax!agate!thoth8.berkeley.edu!jmm From: jmm@thoth8.berkeley.edu Newsgroups: comp.sys.mac Subject: LClikLoop routines and problem with LSPascal Message-ID: <6898@agate.BERKELEY.EDU> Date: 7 Feb 88 20:27:28 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: jmm@thoth8.berkeley.edu () Organization: University of California, Berkeley Lines: 30