[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Resizing and moving a window?



Alan Fry writes:
|This routine toggles between the 'userState' and the 'stdState':
|        if(${$ptr->contRgn->rgnBBox} eq ${$ptr->stdState}) {
|            ZoomWindow($ptr, 7, 1)
|        }
|        else {
|            ZoomWindow($ptr, 8, 1)
|        }
|So far as I see this is not documented anywhere and I would value opinions
|as to whether or not it is a sound scheme.

This method is documented in Inside Macintosh: Macintosh Toolbox Essentials
in Chapter 4, the Window Manager chapter. Listing 4-5 shows some code that
determines the state the window's in and the paragraph after it talks about
what it's doing. So, this is a sound scheme and is in fact the Apple
recommended way of doing it.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch