Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialogs (and other tricks) in INITs??? Message-ID: <10508@adobe.UUCP> Date: 30 Jan 91 23:14:49 GMT References: <1991Jan26.060216.16406@mthvax.cs.miami.edu> <1991Jan29.075003.7313@actrix.gen.nz> Reply-To: hawley@adobe.UUCP (Steve Hawley) Organization: Adobe Systems Incorporated, Mountain View Lines: 27 In article <1991Jan29.075003.7313@actrix.gen.nz> Bruce.Hoult@bbs.actrix.gen.nz writes: >Roby Sherman writes: >> 2>I've never learned how INITs put their Icons on the screen.. I'm assuming >> it's simply PlotIcon, but I'm curious how they get the X and Y of where the >> last Icon was placed so they can position theirs. > >One way is to just drop the following INIT into your file, in adition to >your own one (both will be executed). Make sure it has the same ID as the >ICN# you want displayed -- it's set to 128 at the moment. Cute idea, but boy does it go against any sort of sensibilty. It reminds me of an Eyebeam cartoon that was an advertisement for a drug to take to rid you of all your drug dependencies. And if you get a headache thinking about being dependent on one drug to cure your drug dependencies, remember, they make headache pills too. The point being, if he asks for code for displaying icons, give him code. The patch should be saved for those who were unwilling to add the icon stuff on their own... Steve Hawley hawley@adobe.com -- "Did you know that a cow was *MURDERED* to make that jacket?" "Yes. I didn't think there were any witnesses, so I guess I'll have to kill you too." -Jake Johansen