Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.hypercard Subject: Re: Want find next button Message-ID: <8784@hoptoad.uucp> Date: 22 Oct 89 22:55:03 GMT References: <26510.253D984C@cmhgate.FIDONET.ORG> <8764@hoptoad.uucp> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 38 In article <8764@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: >After any find, simply select the >found text. The next find command will start looking after the >selection. This is how most text editors on the Mac work, and it >presents an intuitively obvious interface. The command to do so is >just "select the findChunk". No, Tim, you idiot. You should have tried it before making this suggestion. First, there's a display bug. If you find successfully and then "select the findChunk", then the text appears selected, but as soon as the user does anything, the findChunk goes away, leading to the text becoming unselected in appearance, even though it is still the selection. Selecting a range and finding it have different rectangles. Try and see what I mean -- finding a phrase in a title field gives a rectangle which stops at the last letter of the title; selecting the findChunk at this point selects all the way to the end of the line on which the last word appears; so after the findChunk vanishes, you're left with a spurious black rectangle starting right after the last letter and going to the end of the line. Second, the find command does *not* start after the current selection. It starts at the end of the findChunk or at the beginning of the current card (if there is no findChunk). So this technique leads to display anomalies and to finding the same string over and over again. What a pain. It looks like we're stuck with counting the "find index" of each string in the card, then repeating the search that many times plus one on "find next". This is so nasty a hack that I believe it qualifies as a bug in HyperCard. There should be some global property specifying a chunk expression for the next search to start at. There isn't one in HC 1.2.1; does anyone know if this has been added in a later version? -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "There's a real world out there, with real people. Go out and play there for a while and give the Usenet sandbox a rest. It will lower your stress levels and make the world a happier place for us all." -- Gene Spafford