Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!pasteur!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Centering Dialogs Summary: use modeless dialogs! Message-ID: <26201@ucbvax.BERKELEY.EDU> Date: 23 Sep 88 05:25:39 GMT References: <1234600002@uxf.cso.uiuc.edu> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 19 I've reached the conclusion that you should never use modal dialogs. If you always use modeless dialogs, and you store in a config file where the user left them, and when the user runs the program again, you put them back where they were (if that spot still exists, people do remove video cards occasionally.), then the user can do what he wants. 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.) As a last resort, center with respect to the screen with the menu bar. i.e. screenBits.bounds. Conclusion: it really is better to let the user put the dialogs where he wants them. --- David Phillip Oster --When you asked me to live in sin with you Arpa: oster@dewey.soe.berkeley.edu --I didn't know you meant sloth. Uucp: {uwvax,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu