Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mailrus!hellgate.utah.edu!helios.ee.lbl.gov!ucsd!hub!6500stom From: 6500stom@hub.UUCP Newsgroups: comp.sys.mac.programmer Subject: Re: Centering Alerts Message-ID: <3353@hub.UUCP> Date: 18 Dec 89 08:54:46 GMT Sender: news@hub.UUCP Lines: 20 From article <15078@well.UUCP>, by wdh@well.UUCP (Bill Hofmann): > In article <22417@ut-emx.UUCP> rdd@walt.cc.utexas.edu (Robert Dorsett) writes: >>Is there an elegant (i.e., easy) way to center *alerts* on a screen? I mean, >>apart from writing an alert-simulator? > Sure. Read the ALRT resource into memory and manipulate the rectangle, being > sure to make it non-purgeable, then call Alert. The Dialog Manager just does > a GetResource, so it'll find the resource you've read into memory and use > the bounding rect you've stuffed. > > There's even a data type: AlertTemplate (IM I-423). I use this method > extensively, on DLOGs as well (especially standard file). Also, be sure not to _center_ alerts, put them 1/3 of the way down (measuring from the bottom of the menu bar to the bottom of the main screen). Center them left to right though, of course. / Josh Pritikin T Ignorance is bliss. \ | Internet: 6500stom@ucsbuxa.ucsb.edu | I must be in hell. | | AppleLink: Josh.P | My room is proof that entropi | \ GEnie: J.Pritikin ! exists. /