Article View: comp.sys.mac
Article #20418Re: YAHQ (Yet Another Hypercard Question)
From: Oliver Steele
Date: Fri, 16 Oct 1987 16:16
Date: Fri, 16 Oct 1987 16:16
71 lines
4197 bytes
4197 bytes
(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."
Technical Details
Message-ID:
<1667@unc.cs.unc.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!mcnc!unc!steeleReferences:
<1168@mipos3.intel.com>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!mcnc!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac Subject: Re: YAHQ (Yet Another Hypercard Question) Message-ID: <1667@unc.cs.unc.edu> Date: Fri, 16-Oct-87 12:16:56 EDT Article-I.D.: unc.1667 Posted: Fri Oct 16 12:16:56 1987 Date-Received: Sat, 17-Oct-87 22:03:41 EDT References: <1168@mipos3.intel.com> Reply-To: steele@unc.UUCP (Oliver Steele) Organization: University of North Carolina, Chapel Hill Lines: 71