Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!tate!jtteh
From: jtteh@dbase.a-t.com (Jin T. Teh)
Subject: Re: Window placement
Message-ID: <1991Jun18.224117.4563@dbase.a-t.com>
Originator: jtteh@dbase
Lines: 24
Nntp-Posting-Host: dbase
Organization: Ashton-Tate, Inc.
References: <1991Jun17.230936.28349@athena.mit.edu>
Distribution: usa
Date: Tue, 18 Jun 91 22:41:17 GMT

darth@athena.mit.edu (Darren T Garnier) writes:

>I think someone mentioned this a while back, but I didn't
>see the answer to it.  In ResEdit 2.1, one can stipulate
>that a window (or dialog) may be autopositioned by system 7.0
>in various ways.  Can this be done programmatically? Is there
>some new undocumented version of NewWindow ?  It does not
>appear to be in IM VI.  

>Thanks again for your unbounding support.

>--
>                        Darren Garnier                
>darth@athena.mit.edu                     | Some rise, some fall,
>garnier@alcvax.pfc.mit.edu               | some try to get to Terrapin.

I think if you set the topleft of the window to (-1,-1), it'll center.
It's documented in some obscure place in UI in IM6.
----------------------------------------------------------------------
jtteh@dbase.A-T.COM
[The opinions are mine and mine alone and not of my employers.       ]
[My employers don't pay me to express opinions, just ship products...]
----------------------------------------------------------------------
