🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages Started by Hablutzel, Bob,CST Tue, 29 Dec 1992 15:21
Re: DrawString in OffScreen
#60
Author: Hablutzel, Bob,CST
Date: Tue, 29 Dec 1992 15:21
40 lines
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
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads