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

  1. Path: sparky!uunet!olivea!apple!applelink.apple.com
  2. From: B.HABLUTZEL@AppleLink.Apple.COM (Hablutzel, Bob,CST)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: DrawString in OffScreen
  5. Message-ID: <725693821.4126487@AppleLink.Apple.COM>
  6. Date: 29 Dec 92 15:21:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 40
  10.  
  11. Bill -
  12.  
  13.   Of course, you realize that you have violated unspoken net etiquete by
  14. posting this to MacApp3Tech$ - this newsgroup is dedicated to bashing
  15. unreleased products. But I'll take a stab anyhow.
  16.  
  17.   I think the problem might be in the SetRect/ViewToQDRect code that you have
  18. at the beginning. Unless you mistyped the code, and it is really a SetVRect
  19. call, something funky is going to happen when you call ViewToQDRect. Remember
  20. that SetRect creates a CRect (16 bits) and a ViewToQDRect expects a VRect (32
  21. bits) in the first argument. So the VRect( CRect ) constructor will be fired,
  22. converting the first argument to a VRect. Then ViewToQDRect gets called,
  23. converting the rect back into a CRect. BUT, in this process the CRect is
  24. translocated to be in line with the view coordinate system. In other words,
  25. this sequence does nothing but move the rectangle to the view coordinate
  26. system. Since all your text is high up in the rectangle, I would guess that
  27. this translocation moves the text above the top of the rectangle, and therefore
  28. it gets clipped.
  29.  
  30.   Try changing
  31.  
  32.    SetRect(theRect, 0, 4, 208, 248);
  33.    this->ViewToQDRect(theRect, theQDRect);
  34.  
  35.  to
  36.  
  37.    SetRect(theQDRect, 0, 4, 208, 248);
  38.  
  39.  and see what happens.
  40.  
  41.  
  42. Bob
  43.  
  44.  
  45.  
  46. Bob Hablutzel
  47. Hablutzel Consulting
  48. ALink: B.HABLUTZEL
  49. Phone: 708 328 0130
  50.  
  51.