Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!bionet!ames!ncar!csn!news From: wilde@boulder.Colorado.EDU (Nick Wilde) Newsgroups: comp.sys.mac.hypercard Subject: Q: replacing the selection on a button click ? Message-ID: <1991Jan5.232644.29647@csn.org> Date: 5 Jan 91 23:26:44 GMT Sender: news@csn.org Organization: University of Colorado, Boulder Lines: 22 Originator: wilde@piper.colorado.edu Nntp-Posting-Host: piper.colorado.edu First of all, I'm but a novice "hyper-hacker", so if this is a FAQ or a "so-simple-everybody-knows-the-answer-but-this-turkey question" I apologize. So send me the answer and I'll shut up. My question: I have this field, ya see. The user clicks on said field, sets the insertion point, maybe selects some text. Now, said user goes over and clicks one of several buttons. Depending upon which button is pushed, I want to replace whatever was selected in the field with some text. The problem is as soon as the user clicks on the button, "the selection" goes away, and I have no idea where to put the text.... Is there someway around this ? Maybe someway to save the selection on a closeField or mouseLeave msg ? Is there some way to get a "description" of the selection, vs the selection itself ? Why is the sky blue ? Do toilets really flush in the opposite direction due to coriolis force in the southern hemisphere ? Does anybody care ? Thanx for listening... -Nick, the novice hyper-hacker