home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / oop / macapp3 / 291 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!apple!applelink.apple.com
  2. From: RSD@AppleLink.Apple.COM (Research SW Design, D Goldman,PRT)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: TEditText Bug
  5. Message-ID: <725492237.8665743@AppleLink.Apple.COM>
  6. Date: 27 Dec 92 21:23:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 36
  10.  
  11. Dear MacApp'ers --
  12.  
  13. I've wasted enough time on this for tonight, so I'll invite any of you who have
  14. dealt with this to help me...
  15.  
  16. It looks like our old friend the floating TEView is NEVER set to prefer outline
  17. fonts. Even if in ViewEdit you have told the TEditText to "Prefer Outline
  18. Fonts".
  19.  
  20. The result of this inconsistency: Make a TEditText field that uses 9-point
  21. Geneva, and prefers outline fonts. Type something into this TEditText field
  22. (or, more accurately, into its floating TEView). Move to another field, so that
  23. the floating TEView goes away. (The text on the screen at this point is that
  24. which the floating TEView drew, using a non-outline font.) Cover up part of the
  25. TEditText field with some other window. Then uncover the TEditText field. Now
  26. the TEditText object redraws the missing text, using an outline font. Since the
  27. two versions of 9-point Geneva have slightly different metrics (at least on my
  28. System 7.0 machine), the two parts of the text are noticeably out of alignment
  29. with each other!
  30.  
  31. I would submit that this is a small bug in MacApp. In the accompanying link
  32. ("Takeover Example") I will use its fix (which is the part that I'm not going
  33. to spend more time on tonight -- your suggestions or corrections are invited)
  34. as an illustration of MacApp support/ownership issues.
  35.  
  36. -- Dave Goldman
  37.    Research Software Design
  38.  
  39. P.S. The work-around for now, of course, is to go back to ViewEdit and uncheck
  40. "Prefer Outline Fonts".
  41.  
  42. P.P.S. All right, I couldn't help myself! The fix should probably be to have
  43. TEditText::InstallFloatingTEView set the floating TEView's fPreferOutline field
  44. to this->fPreferOutline. (Perhaps TTEView should have a mutator method to do
  45. this. At the moment you can only set TTEView::fPreferOutline via ViewEdit!)
  46.  
  47.