[comp.sys.mac.hypercard] Automated Find: Fact||Fiction

stone@hydra.unm.edu (Andrew Stone CS.DEPT) (02/09/89)

WOW! Here is a really cheap and powerful way to do word searches in an
automated fashion. Since a mouseup is sent to a field whether it is locked
or unlocked, the locktext of the field does not matter. Basically, if the
commandKey is down when you click on a word, the "square outline" of the
find mechanism surrounds the word clicked on. Dragging this "find selection"
over contiguous words expands it. This places whatever was surrounded
into the message box.  Releasing the mouse sends the mouseup
to the field. Here is a simple field script to put this feature (Dan, is it
going away?) to use:

on mouseup
  if the commandkey is down then
    put the msg into what
    go NeXT
    find whole what
  end if
end mouseup

Comments, Criticisms, Congratulations?

||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
||	   Andrew Stone	            ??		2 + 2 = 5;		|| 
||         stone@hydra.unm.edu	    <> 	    for sufficiently large 2    ||
||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||