Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!uc!cs.umn.edu!ux.acs!clarson From: clarson@ux.acs.umn.edu (Chaz Larson) Newsgroups: comp.sys.mac.system Subject: Re: How to add startup icon to one that doesn't? Message-ID: <1967@ux.acs.umn.edu> Date: 6 Aug 90 19:49:17 GMT References: <29956.26a4beb0@vaxb.acs.unt.edu> <1990Jul20.001136.6842@midway.uchicago.edu> <1841@petsd.UUCP> <1990Aug4.214719.24490@midway.uchicago.edu> Reply-To: clarson@ux.acs.umn.edu (Chaz Larson) Organization: Iron City, USA Lines: 42 In article <1990Aug4.214719.24490@midway.uchicago.edu> dwal@ellis.uchicago.edu (David Walton) writes: >In article <1841@petsd.UUCP> hill@petsd.UUCP (John S. Hill) writes: >>It is possible and in fact very easy to add icons to most inits/cdevs that >>don't have start up icons. First, find an init/cdev that does show >>its icon, then with ResEdit open that file. Look in the INIT resource, >>where you may find a resource called ShowINIT. Copy this resource and paste >>it into the target init/cdev, changing it's resource id to match the resource >>id of the ICN# that you want to display. That's all there's to it. You may >>of course have to add an ICN# if it doesn't have one, but that's also no big >>deal if you're the least bit artistically inclined. > >First, You can't show an INIT's ICN# just by cutting and pasting >resources: you have to do it in code. David, I've done just this at least a dozen times. Open the INIT with ResEdit, find an INIT resource named "ShowINIT", copy and paste it into the target file, and create/number ICON/ICN#s to accomplish the deed. In fact, I created a joke INIT for a friend's birthday just this way. The file contained only two resources; the ShowINIT resource and the ICN# to be shown, which was some cake or something. I changed the filetype to "INIT" and dropped it into the System folder, where it worked fine. > Second, ShowINIT isn't a >resource, it's a procedure written in assembly language which is >called by the INIT resource to show its ICN#. In fact, it's the >procedure which I mentioned in my original reply. You can't just cut >and paste this portion of the INIT code with ResEdit; you have to put >in a call to ShowINIT in the INIT code itself, with the resource ID of >the ICN# you want to display as one of the parameters. Not true. It is true that ShowINIT was originally written in assembler, but it compiles into an INIT resource, which can be cut and pasted with ResEdit just fine. I'll be glad to mail you an example, if you wish. -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "Must think...bubble pipe will relax me and I think..." - Flaming Carrot clarson@ux.acs.umn.edu AOL:Crowbone