home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14126 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!usc!cheshire.oxy.edu!wirehead
  3. From: wirehead@cheshire.oxy.edu (David J. Harr)
  4. Subject: Re: Changing the ascent in a dialog edit text item.
  5. Message-ID: <1992Aug18.041739.6789@cheshire.oxy.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Summary: OK, I fixed it now.
  8. Keywords: dialog, edit text item, changing font
  9. Sender: wirehead@cheshire.oxy.edu(Lone Hacker of the Apocalypse)
  10. Organization: The Programmers who say NEE!
  11. References: <1992Aug17.054527.18105@cheshire.oxy.edu>
  12. Date: Tue, 18 Aug 1992 04:17:39 GMT
  13. Lines: 26
  14.  
  15. In article <1992Aug17.054527.18105@cheshire.oxy.edu> I write:
  16. >OK, I have an edit text item that I need to display in 9 pt
  17. >Geneva instead of 12 point Chicago. I have an 'ictb' resource
  18. >that has all the proper information, but it only partially works.
  19. >The text is indeed drawn in Geneva9, but the spacing between the
  20. >lines seems more appropriate to Chicago12 than Geneva9. Also, the
  21. >blinking cursor appears way out to the side of where it should be,
  22. >as if the width of the string were being computed with the 12 point
  23. >font agin, instead of the nine point font. There is a nonblinking
  24. >cursor that is at the proper position, but the blinking cursor is
  25. >blinking at a different place than the actual insertion point,
  26. >which is very confusing. If anyone has any ideas as to what I am
  27. >doing wrong, I would appreciate hearing about them.
  28. >
  29.  
  30. I finally got the silly thing to work by calling TextFont and TextSize,
  31. and then manually stuffing the values for the line height, the ascent,
  32. the point size, and the font into the text edit record. It's pretty
  33. sorry that there isn't an Toolbox call that will do all this for you.
  34.  
  35. David J Harr
  36. wirehead@cheshire.oxy.edu
  37.  
  38. "Everybody is quoting everybody else in their .sigs, I don't
  39. see why I shouldn't be able to quote myself."
  40.                     -- David J Harr in comp.sys.mac.programmer
  41.