Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Window Zooming Message-ID: <34074@ucbvax.BERKELEY.EDU> Date: 2 Feb 90 09:42:01 GMT References: <1453@raybed2.UUCP> <5544@hydra.gatech.EDU> <10003@hoptoad.uucp> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 32 In article <10003@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: _>>>Am I supposed to diddle with the _>>>WStateData in the DataHandle part of the WindowRecord? _>>No, not for ordinary zooming of a standard zoom window. Remove any _>>such code as it may be interfering with proper operation. _>Agreed; most software shouldn't need to mess with this. No, until Apple gets its act together, _all_ software _should_ mess with this, or someone should write an INIT to solve the problem once and for all. Consider: You are working on a Mac with two CRTs. You put a window on the second screen, and click its zoom box. What you want is for the window to zoom to the full size of the _second_ CRT, the one it is on. What you get is it zooms to the full size of the CRT with the menu bar: it jerks out from under the mouse to somewhere else entirely. This is particularly annoying if you were working on a large screen, and your window has suddenly zipped to a small one. After a MoveWindow(), I compare the window's portRect (translated to global coordinates) with the rectangles on the gDevice list, and adjust its max zoom size appropriately for the device the window is mostly on. Even if you don't care about this nicety, you should at least adjust the maximum zoom out size so that it is no bigger than the entire document the user is working on. --- David Phillip Oster -- No, I come from Boston. I just work Arpa: oster@dewey.soe.berkeley.edu -- in cyberspace. Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu