jroberts@mipos3.intel.com (Joe Roberts) (10/15/87)
Hello, I need to find out how you copy icons to Hypercard. I read in the on-line help that this is possible using ResEdit, but it failed to tell me how to do it. I have tried using ResEdit to copy some icons to Hypercard. I have tried to paste new icons into the ICON resource (this is where Hypercard stores all it's icon ideas) but it does not actually get pasted into the ICON resource but the ICN# resource. Can someone tell me how to paste new icons to the ICON resource. I could create them in ICON but this is far to time comsuming. Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclaimer: Of course these are only my opinions, no one else's. YA HEAR, MINE MINE ALL MINE ........ HAHAHAHAHAHAHAHAHAHAHAHA!!!!!!!!!!!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _____________ / \ / ****** \ "I say Bananaman, can you stop that chap?" / * * \ / * * \ "But of course, I have the power of the banana!" \ ****** / \ * * / \ * * / Joe Roberts \ * * / Intel/Santa Clara, CA \ ******* / Ph. (408) 496-4631 \_________/ {hplabs,decwrl,oliveb,amdcad}!intelca!mipos3!jroberts
suhler@im4u.UUCP (Paul A. Suhler) (10/16/87)
In article <1168@mipos3.intel.com> jroberts@mipos3.intel.com (Joe Roberts) writes: > I have tried using ResEdit to copy some icons to Hypercard. I have tried > to paste new icons into the ICON resource (this is where Hypercard stores > all it's icon ideas) but it does not actually get pasted into the ICON > resource but the ICN# resource. Can someone tell me how to paste new icons > to the ICON resource. I could create them in ICON but this is far to time > comsuming. Thanks in advance. I asked everyone I could around here, and it doesn't seem possible to create icons from scratch purely inside HyperCard. In ResEdit I couldn't copy from ICN# and paste into ICON (or into anything else, like MacPaint). If you can find an ICON you like, you can copy and paste it, but most of the good ones I found were ICN#s. I was reduced to using ResEdit to opening the ICON window, creating a new one, and opening the window of the ICN# I liked beside it. Then I would manually copy it, bit-by-bit. No joke that it's slow. The only reasonable way would be to use Iconographer (?) or some other icon-creation application. Does anyone know how to turn an ICN# into an ICON or move them into and out of MacPaint? -- Paul Suhler suhler@im4u.UTEXAS.EDU 512-474-9517/471-3903
steele@unc.cs.unc.edu (Oliver Steele) (10/16/87)
(I thought there might be general interest in this one, so I posted instead of mailing. I didn't want to try to ram stuff through the typically recalcitrant mailers, anyway.) jroberts@mipos3.intel.com (Joe Roberts) writes: >Hello, Hi. > [....] > I have tried using ResEdit to copy some icons to Hypercard. I have tried > to paste new icons into the ICON resource (this is where Hypercard stores > all it's icon ideas) but it does not actually get pasted into the ICON > resource but the ICN# resource. When you're looking at a list of resource types within a file, or at a list of resource numbers/names within a resource type, and you do a paste, ResEdit pastes the resource(s) that was in the clipboard into the file as whatever resource type was in the clipboard. It will not automatically convert the resource into whatever type you're looking at. It sounds like you've copied ICN#s, so they'll be pasted as ICN#s no matter where you paste them. What you need to do is convert an ICN# into an ICON. Fortunately, this is very easy because they're already almost the same; if you'd wanted to convert a PICT (picture) or TEXT into an ICON you'd be in for some trouble. First of all, in ResEdit, look at the table of ICN#s that shows the one you want to turn into an ICON. Select, but don't open, the one you want. Then choose "Open General" from the "File" menu. (The short-cut for this is probably option-double-click.) You will see a hexadecimal representation of the contents of that ICN#. Since an ICN# ("ICON list") is really two ICONs, one after the other, and the second icon in the ICN# is just used for hilighting in the Finder and HyperCard doesn't hilight the same way the Finder does, you just want to copy the first half of the hexadecimal data. Drag from the top left of either the middle column or the right column downwards until you've selected the first sixteen lines, up to and including the one labelled "000078", and then Copy. You've now got the information you want from the ICN#; what's left is to create an ICON and paste the information in. Open to the file you want to put the ICON in. If you see "ICON" in the list of resources types, double-click it; if you don't, choose "New" from the "File" menu, type or select "ICON", and press return. Choose "New" again. This will make a new (blank) ICON and bring up a window for editing it. You don't want to edit it as an icon, though; you want to edit it as hexadecimal data. So close the icon-editing window, and choose "Open General" again. First get rid of the old data, and then paste in the new data, which was the last thing you Copy-ed. (You'd thing you could just replace the old with the new like you can in text fields, but all the ResEdits I've seen sometimes have problems with this.) To get rid of the old data, choose everything in the middle or right column, and press Backspace or Delete (don't Cut; you want to use the last thing you cut). Then click in the middle or right column, whichever one you Copy-ed the data from the ICN# from, and Paste. Close the hex window, and you should be looking at your ICON. This is all easier than it sounds, especially after you've played with ResEdit a while and get on a first-name basis with various resource types. Good luck. ------------------------------------------------------------------------------ Oliver Steele ...!{decvax,ihnp4}!mcnc!unc!steele steele%unc@mcnc.org "'As it were' means 'I think that I sound very erudite.' 'Per se' is Latin for 'as it were.' As it were."
dean@aoa.UUCP (Dean Wormell) (10/20/87)
A proficient Mac hacker taught me this method to turn an ICN# resource into an ICON resource which then can be installed into Hypercard (or any other application containing the ICON resource) using ResEdit. You need ResEdit, ResDecomp, a text editor, RMaker and some patience to complete the following procedure. First open the program which contains the desired icon using ResEdit. If the icon you desire is shown when you open the ICON resource of that program, you simply need to copy and paste that ICON into you destination program's ICON resource (i.e. Hypercard). If not, close the source program (Hypercard) inside of ResEdit and create a new file using the New command inside of ResEdit (name it anything you want). Now, open the ICN# resource in the source program then copy and paste the pictures of the desired icons into your new file. This step can be done for all the source program icons you desire, such that your new file will contain an ICN# resource with several different icons inside of this resource. Once you've created this new file with all the icons you want, save and close this file and quit ResEdit. Now the fun begins, use ResDecomp, or any other resource decompiling utility (do others exsist??) to open and decompile the ICN# resource of your new file. This creates a text file. Quit ResDecomp and open the text file with a text editor (Edit, MacWrite, MSWord, etc...). Do a search for occurrences of ICN# and replace them with ICON. Each resource will be divided into blocks of hex data; what you need to do is remove the LOWER half (or lower eight of sixteen lines) of hex data in each block. Once you have completed the last two steps for all the blocks of data in your text file, save the file as text and quit the editor. Now you need to open RMaker, or another resource compiling utility (do others exsist???) and compile the edited text file. Open this compiled file from ResEdit and PRESTO you now have all those icons as ICON resources which can be copied and pasted into your destination program's ICON resource (i.e. HyperCard). I know this is a little long winded and tedious, but I've done this for several ICONs that I wanted to use in HyperCard, and it works!! Good luck! -- Dean Wormell ...!{harvard,ima}!bbn!aoa!dean