home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19745 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.8 KB

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