Path: utzoo!attcan!uunet!samsung!brutus.cs.uiuc.edu!psuvax1!xavier!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: When to use a _real_ moda Message-ID: Date: 16 Mar 90 19:26:45 GMT References: <31.25FE3449@imagery.FIDONET.ORG> <234.26016fa6@waikato.ac.nz> Sender: news@xavier.swarthmore.edu (USENET News System) Reply-To: jackiw@cs.swarthmore.edu (Nick Jackiw) Organization: Visual Geometry Project, Swarthmore College, PA Lines: 36 ccc_ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes: > I never use the Alert traps. I invariably want to centre my alerts horizontally > on the screen regardless of screen size, and I can't do that with Alert, > whereas I can with modal dialogues. x:=GetResource('ALRT',res_ID); with AlterTHndl(x)^^.boundsRect do begin width:=right-left; left:=(Screenbits.bounds.right+ScreenBits.bounds.left-width) div 2; right:=left+width end; i:=Alert(res_ID); > This also has the pleasant side effect > that my alerts will never beep at you. Set the "soundN" parameters in the ALRT's stageList to 0. > Lawrence D'Oliveiro > Computer Services Dept, University of Waikato, Hamilton, New Zealand > Any opinions expressed by the author of this posting are sacred to > Epimetheus, the Greek god of hindsight. Understandable. :-) -- --- jackiw@cs.swarthmore.edu | Smoggo: Can you prevent the detonation of jackiw@swarthmr.bitnet | the thermonuclear device? Applelink: D3717 | Jimbo: No ... I cannot.