Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!nerm From: nerm@Apple.COM (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: Window placement Message-ID: <54256@apple.Apple.COM> Date: 22 Jun 91 19:40:55 GMT References: <1991Jun17.230936.28349@athena.mit.edu> Distribution: usa Organization: Apple Computer Inc., Cupertino, CA Lines: 20 In article <1991Jun17.230936.28349@athena.mit.edu> 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. > My memory is a little foggy on this (not enough sleep after three days at MacHack...) but I think we implemented the window position algorithms by extending the 'WIND' resource. This implies that there's a patch on _GetNewWindow which parses the new information. So I guess that means you need to use 'WIND' resources to get the automagic positioning, and _NewWindow won't cut it... -- Dean Yu Blue Meanie, Negative Ethnic Role Model, etc... Apple Computer, Inc. Blah blah blah blah....