Re: Images/Icons

Boyd Sweeney (starnet!apple!puzzler.nichols.com!sweeneyb)
Wed, 22 Jun 1994 09:13:59 -0500

>Hi,
>
>how can I use my own images as icons in buttons?
>
What you need to do is to use the 'Import' option from the 'File' menu to
place your images on a MetaCard stack. You would then set the 'Icon'
property of the button in question to the 'Id' of the proper image.

You might want to add your images to the "My Icons" stack that ships with
MetaCard. One image is stored per card on this stack, and the images may
be selected from the 'Icon' dialog. However, note that images added to new
cards on this stack don't just show up on the 'Icon' dialog. It apparently
only displays 32 images with id's between 651 and 682.

To replace an image on the 'My Icons' card of the 'Icon' dialog:
- Open the 'My Icons' stack with the command: Toplevel "My Icons"
- Use the 'Navigator' dialog to move to the card containing the image
to be replaced.
- Double click on the image to display its properties dialog, and
record the image's Id.
- Delete the image.
- Use the 'Import' menu option to read your new image, placing it
on the 'My Icons' stack.
- Edit the new image's properties, and change its Id to the number
recorded earlier.
- Save the altered 'My Icons' stack.

All in all, this is quite a bit of trouble. I would recommend just
creating a new substack, and stuffing your images into it. Then set the
button's icon property from the message box. i.e. set the icon of button
"My Button" to 1212

>And is it possible to use special marks like
>i.e. greek alphabeths in between normal text?
>
Yes, just select the 'Symbol' font from the 'Font' menu. It contains a
variety of such special characters. You can highlight text and change its
font type, size and style as you would in most word processors. I'm not
sure where you might find a map of the Symbol font, I usually find the
characters I need through trial and error. It wouldn't be difficult to
create a font viewer in MetaCard though.

>
>- Anna Loimulahti -

I hope I haven't confused you too much concerning Icons; it's always
difficult to judge someone's level of expertise from a single posting.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/