home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!vaxa.hofstra.edu!vaxa.hofstra.edu!matsrc
- Newsgroups: comp.sys.mac.programmer
- Subject: Window Zooming
- Message-ID: <1993Jan1.122830.1@vaxc>
- From: matsrc@vaxa.hofstra.edu
- Date: 1 Jan 93 12:28:30 EST
- Nntp-Posting-Host: vaxb.hofstra.edu
- Lines: 35
-
- Happy New Year everyone, and to start it off some questions about
- window zooming. I've read the Tech Notes, the various discussions in
- Inside Macintosh, and now Dean Yu's code for window zooming, but there
- are two things that are still not clear to me in my quest for
- absolutely p.c. (_not_ PC :) ) zooming.
-
- (1) FindWindow (actually, the standard WDEF) returns inZoomIn or
- inZoomOut on the basis of a comparison of the window's portRect with
- its stdState. This means to me that the stdState must be calculated
- _before_ the user clicks in the zoom box in order for the correct
- decision to be made. The time to do this seems to be after any drag or
- resize. However, the code given in the Tech Notes and that given by
- Dean Yu calculate the stdState _after_ the click in the zoom box. Which
- is correct?
-
- If you ask what difference does it make, consider the following
- scenario: A window is put in its standard state, which is smaller than
- the screen (like a Finder window). It is then moved elsewhere on the
- screen, but to another valid position for its standard state. When the
- user clicks on the zoom box, you would like FindWindow to return
- inZoomIn because the window is in its standard state, but how will
- FindWindow know that?
-
- (2) Which takes precedence when switching to the standard state: The
- desire to leave the top left corner fixed, or the desire to leave space
- on the right of the main screen for Finder icons? Dean Yu's code would
- leave the top left corner fixed and allow the standard state to cover
- the icons, if this fits on the screen. Only if it does not fit is the
- window moved and resized to uncover the icons. The Finder, naturally
- enough, gives precedence to uncovering its own icons (try it). Which
- ought it to be?
-
- Questions to ponder for 1993.
- --Steve Costenoble
- --matsrc@vaxc.hofstra.edu
-