Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ll-xn!oberon!pollux.usc.edu!kurtzman From: kurtzman@pollux.usc.edu (Stephen Kurtzman) Newsgroups: comp.sys.mac.hypercard Subject: Re: rapid index access (was hypercard thoughts) Message-ID: <4969@oberon.USC.EDU> Date: Sun, 1-Nov-87 20:27:49 EST Article-I.D.: oberon.4969 Posted: Sun Nov 1 20:27:49 1987 Date-Received: Thu, 5-Nov-87 22:02:29 EST References: <2014@umd5.umd.edu> <4911@oberon.USC.EDU> <2017@umd5.umd.edu> <4232@sdcsvax.UCSD.EDU> Sender: nobody@oberon.USC.EDU Reply-To: kurtzman@pollux.usc.edu (Stephen Kurtzman) Organization: University of Southern California, Los Angeles, CA Lines: 30 Keywords: index cards fast In article <4232@sdcsvax.UCSD.EDU> borton@net1.UUCP (Chris Borton) writes: > >I have 26 'index' cards that I try to keep invisible. My solution has been to >kludge the Next and Prev arrows to look at the card they are going to, and if >it is an index card then send mouseUp to {Next,Prev} of the next card in that >direction. > >This works fine for smallish stuff. It has the problem, however, that if >someone tries to click the arrow with more than 17 index cards between them >and the next data card, HC errors with 'Too much recursion' > >What other solutions to such problems are there? Chris. Make your index cards one background type, and your data cards another. Then use the following scripts in your "Prev" and "Next" buttons, respectively, on mouseUp go to previous card of this background end mouseUp on mouseUp go to next card of this background end mouseUp This should obviate the need for examining the next card. If there is some need to have these cards all have the same background, or your examination process is too complex to render in this fashion, you can always replace the "send mouseUp ..." with an iterative routine. It may not be as simple to program, but it should use both time and space a little more efficiently.