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

  1. Path: sparky!uunet!gatech!concert!borg!strauss!lari
  2. From: lari@strauss.cs.unc.edu (Humayun Lari)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How do I STOP my TextEdit field from updating?
  5. Message-ID: <18336@borg.cs.unc.edu>
  6. Date: 14 Dec 92 02:56:35 GMT
  7. References: <1992Dec13.182630.4371@netcom.com>
  8. Sender: news@cs.unc.edu
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 17
  11.  
  12. In article <1992Dec13.182630.4371@netcom.com> bskendig@netcom.com (Brian Kendig) writes:
  13. >How can I STOP the TextEdit field from redrawing itself immediately
  14. >when I delete a line?  I TEDeactivate it, and turn off TEAutoView.  I
  15. >will eventually get around to updating the window on the screen, at
  16. >which time I want the text to be redrawn -- but not now!
  17.  
  18. One way to solve the problem would be to access the text directly through the
  19. hText field, using BlockMove and SetHandleSize to delete the line and then
  20. calling TECalText to update the lineStarts array. TECalText will probably be
  21. kind of slow, though; if you don't mind being sneaky, you can decrement nLines
  22. and use BlockMove and SetHandleSize to shift the lineStarts array up one, in
  23. the same way you deleted the line.
  24.  
  25. <Grin> This is guaranteed to work -- theoretically, of course.
  26.  
  27. Humayun Lari
  28. (lari@cs.unc.edu)
  29.