Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!well!wdh From: wdh@well.UUCP (Bill Hofmann) Newsgroups: comp.sys.mac.programmer Subject: Re: Centering Alerts Message-ID: <15078@well.UUCP> Date: 18 Dec 89 03:44:54 GMT References: <7454@hubcap.clemson.edu> <22417@ut-emx.UUCP> Reply-To: wdh@well.UUCP (Bill Hofmann) Distribution: usa Organization: No, thank you. Lines: 12 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). -Bill