Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!casseres From: casseres@Apple.COM (David Casseres) Newsgroups: comp.sys.mac.programmer Subject: Re: Centering Dialogs Message-ID: <17659@apple.Apple.COM> Date: 23 Sep 88 22:11:58 GMT References: <1234600002@uxf.cso.uiuc.edu> <26201@ucbvax.BERKELEY.EDU> Reply-To: casseres@apple.com.UUCP (David Casseres) Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <26201@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: >If you must use modeless dialogs, then they probably refer to some >document and should come up "centered" on that document's window. (they >might be centered left and right, but not top and bottom.) But what if the document's window is partly offscreen? That may sound weird but with some applications this could happen. >As a last resort, center with respect to the screen with the menu bar. >i.e. screenBits.bounds. I think this should be the "normal" way to do it, even with modeless dialogs. It seems better to me if the dialog always comes up in the same place. (Disclaimer: Apple is always telling me "that's just your opinion.") >Conclusion: it really is better to let the user put the dialogs where he >wants them. Only if the user explicitly tells you where he wants them! David Casseres