Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!bbn!rochester!ur-tut!sunybcs!bingvaxu!leah!itsgw!steinmetz!unioncs!shinberd
From: shinberd@unioncs.UUCP (David Shinberg)
Newsgroups: comp.sys.mac.programmer
Subject: Window Height
Message-ID: <813@unioncs.UUCP>
Date: 9 May 88 05:17:36 GMT
Organization: Union College, Schenectady, NY
Lines: 24

I need to display a great deal of data into a window.  I do not want to
draw it all in each time the window gets scrolled.  I was going to 
take the top and bottom of the window and then just draw the necessary data.

Now here is the problem: I get a NEGATIVE value for the height of my window.
The code looks like this ( WindowData is a WindowPeek ):

WindowHeight := WindowData^.port.portrect.top - WindowData.port.portrect.bottom;

I have no idea why this is a negative number but I checked it using MacsBug.

BTW: Has anyone received the new technotes from Apple (The reprints).

		All help will be greatly appreciated.
				Dave S

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Disclaimer: Don't blame me ... I'm too new at this                          |
|                                                                             |
| David Shinberg		       BITNET: 88_shinb@union                 |
| Box 2073                             UUCP: uunet!steinmetz!unioncs!shinberd |
| Union College                                                               |
| Schenectady NY, 12308                                                       |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~