Path: utzoo!attcan!uunet!intercon!news From: amanda@mermaid.intercon.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you find a window's location? Message-ID: <266417B9.B3E@intercon.com> Date: 30 May 90 18:58:01 GMT References: <3258@usceast.UUCP> <22352@dartvax.Dartmouth.EDU> Sender: usenet@intercon.com (USENET The Magnificent) Reply-To: amanda@mermaid.intercon.com (Amanda Walker) Organization: InterCon Systems Corporation, Herndon, VA Lines: 14 > jwwalker@usceast.UUCP (Jim Walker) writes: > >how do you *find* a window's location? In article <22352@dartvax.Dartmouth.EDU>, mjm@eleazar.dartmouth.edu (Michael McClennen) writes: > How about checking the grafPort's portRect? The portRect is in local coordinates. What I do is SetPort to the Window, make a copy of the portRect, and call LocalToGlobal on the corners. If you really want to be studly, you should also save & restore the zoomed state... -- Amanda Walker InterCon Systems Corporation