home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!enterpoop.mit.edu!hri.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!bskendig
- From: bskendig@netcom.com (Brian Kendig)
- Newsgroups: comp.sys.mac.programmer
- Subject: How do I STOP my TextEdit field from updating?
- Message-ID: <1992Dec13.182630.4371@netcom.com>
- Date: 13 Dec 92 18:26:30 GMT
- Organization: Starfleet Headquarters: San Francisco
- Lines: 25
-
- I have a window with a TextExit field in it that I'm using as a
- command-line interface to a program. Since there's a limit on how
- much text a TextEdit record can hold, I check periodically to see if
- the amount of text in the record has crossed a threshhold, and if so,
- I delete lines from the beginning of the record until it's back below
- the threshhold again.
-
- Problem is, when I delete the first line of text (by using TESetSelect
- then TEDelete), the text visible in my window scrolls up one line,
- naturally. (The end of the text is at the bottom of my window, and
- the start of the text is scrolled off the top of the window.) Then my
- procedure to adjust the window scrolls the text back down to look like
- it was before, causing an annoying flicker.
-
- How can I STOP the TextEdit field from redrawing itself immediately
- when I delete a line? I TEDeactivate it, and turn off TEAutoView. I
- will eventually get around to updating the window on the screen, at
- which time I want the text to be redrawn -- but not now!
-
- --
- _/_/_/ Brian Kendig Je ne suis fait comme aucun
- /_/_/ bskendig@netcom.com de ceux que j'ai vus; j'ose croire
- _/_/ n'etre fait comme aucun de ceux qui existent.
- / Nolite te bastardes Si je ne vaux pas mieux, au moins je suis autre.
- / carborundorum. -- Rousseau
-