Article View: comp.sys.mac.oop.macapp3
Article #60Re: DrawString in OffScreen
From: Hablutzel, Bob,CST
Date: Tue, 29 Dec 1992 15:21
Date: Tue, 29 Dec 1992 15:21
40 lines
1705 bytes
1705 bytes
Bill - Of course, you realize that you have violated unspoken net etiquete by posting this to MacApp3Tech$ - this newsgroup is dedicated to bashing unreleased products. But I'll take a stab anyhow. I think the problem might be in the SetRect/ViewToQDRect code that you have at the beginning. Unless you mistyped the code, and it is really a SetVRect call, something funky is going to happen when you call ViewToQDRect. Remember that SetRect creates a CRect (16 bits) and a ViewToQDRect expects a VRect (32 bits) in the first argument. So the VRect( CRect ) constructor will be fired, converting the first argument to a VRect. Then ViewToQDRect gets called, converting the rect back into a CRect. BUT, in this process the CRect is translocated to be in line with the view coordinate system. In other words, this sequence does nothing but move the rectangle to the view coordinate system. Since all your text is high up in the rectangle, I would guess that this translocation moves the text above the top of the rectangle, and therefore it gets clipped. Try changing SetRect(theRect, 0, 4, 208, 248); this->ViewToQDRect(theRect, theQDRect); to SetRect(theQDRect, 0, 4, 208, 248); and see what happens. Bob Bob Hablutzel Hablutzel Consulting ALink: B.HABLUTZEL Phone: 708 328 0130
Technical Details
Message-ID:
<725693821.4126487@AppleLink.Apple.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!apple!applelink.apple.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!apple!applelink.apple.com From: B.HABLUTZEL@AppleLink.Apple.COM (Hablutzel, Bob,CST) Newsgroups: comp.sys.mac.oop.macapp3 Subject: Re: DrawString in OffScreen Message-ID: <725693821.4126487@AppleLink.Apple.COM> Date: 29 Dec 92 15:21:00 GMT Sender: daemon@Apple.COM Organization: AppleLink Gateway Lines: 40