Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!gatech!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!rj0z+ From: rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) Newsgroups: comp.sys.mac.programmer Subject: Centering Dialogs Message-ID:Date: 18 Sep 88 18:56:42 GMT Organization: Carnegie Mellon Lines: 17 Centering alert and dialog boxes is relative straight forward on a single screen system, but what do you do when there are two or more screens connected to the system? I tried to find some mention of how this should be handled in IM, but did not. There are several ways this could be done: (1) Center over ScreenBits.Bounds, which would probably put the dialog between screens. (2) Always center on the main screen (the one with the menu bar). (3) Try to locate the screen with the frontmost window, and center on it. (4) Center the dialog on the screen that the cursor is currently pointing on. The problem is that I only have one screen, and want my programs to work correctly on bigger systems. I have already implemented the fourth (4) method. Anyone think that it should be done differently or have any other methods? Rob Johnston.