ignored = fn FBGetScreenRect(rect)
Before MacOS X, we were able to extract the content rectangle of a window using the following code:
// rem does not work in MacOS X
This no longer works because the window pointer and the grafport have been separated into different structures. You can substitute this simple function in your programs and it will work in all supported versions of the system software.
dim @t,l,b,r // old style rectangle
dim r as Rect // new style rectangle