home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / 24415 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.7 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!dlyons
  2. From: dlyons@Apple.COM (David A Lyons)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: how to scroll in a TextEdit control?
  5. Message-ID: <74629@apple.apple.COM>
  6. Date: 24 Nov 92 03:38:05 GMT
  7. References: <1992Nov12.065012.3601@tamsun.tamu.edu> <uerics.721719499@mcl> <1992Nov17.175534.1057@tamsun.tamu.edu>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 25
  10.  
  11. In article <1992Nov17.175534.1057@tamsun.tamu.edu> j0p7771@tamuts.tamu.edu (Jason Perez) writes:
  12. >[...]
  13. >i'm not using TaskMaster to control the record because i am going to have
  14. >multiple fonts/styles/sizes and i didn't think i could do this with
  15. >TaskMaster. though i am using TaskMaster for everything else .  what i need
  16. >is way to know when i'm at the bottom of the window so i can scroll up.  it
  17. >looks like i'll have to keep a manual count of which line i'm on to figure
  18. >it out.
  19.  
  20. Try using the "cachSelcVPos" and "cachSelHPos" fields in the Text Edit
  21. record.  They tell you the last vertical and horizontal position at
  22. which TE drew your insertion point. -- If that position is outside your
  23. window's portRect (at some point between StartDrawing and SetOrigin(0,0),
  24. when your window's port's origin reflects the scroll bar settings), then
  25. you need to scroll your stuff, using SetContentOrigin on your window
  26. (not using TEScroll).
  27.  
  28. There is no conflict with using multiple fonts in your TE control and
  29. also using TaskMaster.
  30. -- 
  31. David A. Lyons, Apple Computer, Inc.      |   DAL Systems
  32. Apple II System Software Engineer         |   P.O. Box 875
  33. Internet:dlyons@apple.com                 |   Cupertino, CA 95015-0875
  34.  
  35. My opinions are my own, not Apple's.
  36.