[comp.sys.mac.programmer] Window Height

shinberd@unioncs.UUCP (David Shinberg) (05/09/88)

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                                                       |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~