Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!kazim From: kazim@Apple.COM (Alex Kazim) Newsgroups: comp.sys.mac.programmer Subject: Re: Follow Up On Centering DLOGs & ALRTs Summary: HI Tech Note #6 Message-ID: <40233@apple.Apple.COM> Date: 12 Apr 90 23:32:46 GMT References: <1990Apr9.125651.23391@ncsuvx.ncsu.edu> <6178@accuvax.nwu.edu> Distribution: comp Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <6178@accuvax.nwu.edu> engber@gumball (Mike Engber) writes: > >All the solutions I was sent used screenBits.bounds. Is this what you >want in a multi-monitor situation? If not, what should you do? > The location of the dialog should be tied to the area of user attention. For instance, if the alert is an out-of-range alert for a field in a window, the alert should appear on the same screen as the "owning" window. You can do this by walking the GDevice list, determining which screen the "owning" window is "most" on (SectRect the gDeviceRect with portRect), and placing the alert on that screen. Also, I think you should center the alerts using a 1/3 to 2/3, top-to- bottom ratio. In English, the space under the dialog is TWICE the space above the dialog. ==================================================================== Alex Kazim, Apple Computer No, but I do get paid for my opinions ====================================================================