Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!bioscience.utah.edu!kofoid From: kofoid@bioscience.utah.edu (Eric Kofoid) Newsgroups: comp.sys.mac.hypercard Subject: Re: problem with returnInField Message-ID: <1990Dec3.184117.14525@fcom.cc.utah.edu> Date: 3 Dec 90 18:41:17 GMT References: <2419@pbhyg.PacBell.COM> Sender: news@fcom.cc.utah.edu Organization: Dept. of Biology, University of Utah Lines: 43 In article <2419@pbhyg.PacBell.COM> mwan@PacBell.COM (Miu Wang) writes: > [...] > I have a script: > > on returnInField > do something > pass returnInField > end returnInfield > > What I want to do is to "do something" when the user types a "return" in a > text field, then have the system do its normal thing (put a return character > in the text field and move the insertion point to the beginning of the next > line in the field and allow the user to continue typing. But HC does not > return control to the text field after the "do something". Bummer... >[...] Try this: on returnInField put selectedChunk into thePos -- Following line is a dummy example of something -- which can be done at this point: put the ticks put return after thePos pass returnInField end returnInField Cheers, Eric Kofoid __________________________________________________________________ | Eric Kofoid; Dept. Biology, U. of Utah; SLC, UT 84112 | | (801) 581-3592 | | kofoid@bioscience.utah.edu | | | | -- The University of Utah is blameless for anything I've said -- | |__________________________________________________________________