home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!elroy.jpl.nasa.gov!orchard.la.locus.com!optimla!mike
- From: mike@optimla.aimla.com (Mike Diehr)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Saving Insertion Point
- Message-ID: <1992Aug20.173641.4471@aimla.com>
- Date: 20 Aug 92 17:36:41 GMT
- Sender: news@aimla.com
- Organization: Philips Interactive Media
- Lines: 19
- Nntp-Posting-Host: chondrite
-
- I received several responses to my question of how to update the contents
- of field2 (via an Idle handler) while the user is typing in field1,
- without the insertion point moving to field2 (which disrupts the user`s
- ability to type).
-
-
- The solution:
-
- put the selectedchunk into X -- remember the insertion point
-
- -- do all field updating here
- put the length of field "user typing" into field "number of chars"
- put the number of words in field "user" into field "number of words"
-
- -- now, restore the insertion point
- do "select" && X
-
-
- thanks to all that responded!
-