T.R | Title | User | Personal Name | Date | Lines |
---|
1637.1 | IconEd can change an Icon's Type | TLE::RMEYERS | Randy Meyers | Wed Aug 31 1988 19:51 | 34 |
| Re: .0
The problem is that disk and drawer type icons have an additional data
structure associated with them: its called something like "drawer_data".
This data structure is used to store the size and position of the window
that is opened when the disk or drawer is opened.
Thus, a disk and drawer icon differ from a tool or project icon not only
in the icon type, but also by containing additional information.
There is a simple way to "convert" a project icon into a valid drawer
or disk icon.
After you ZAPICON to create the project icons, run IconEd.
After you get into IconEd, load a disk icon into the first frame.
(To load a disk icon, the icon must actually be stored on the disk.
The workbench will create a disk icon in memory for any disk that
doesn't have one. To force that icon to be stored, select the icon
by clicking on it, and then use the "Snapshot" workbench menu item
to save its position.) Disk icons are always name Disk.info and are
stored in the root directory of the disk.
Load the project icon you created into the second frame.
Copy the image for frame two into frame one.
At this point frame one is a icon for a disk that has the image you
want.
Click on frame one to select it. Then save it as disk.info.
If you wish to give your new disk icon an alternate selected image,
you can then use ALTICON.
|
1637.2 | I'd rather be at home .... | CESARE::ZABOT | Marco Zabot-Adv.Tech.mgr-Turin ACT | Thu Sep 01 1988 09:50 | 3 |
| Great ! Thank you. I will give a try asap.
Have you an idea on which manual/chapter are stored the info on
icon and xxx.info structure ?
|
1637.3 | Of course Chapter 20 explains the startup code | TLE::RMEYERS | Randy Meyers | Thu Sep 01 1988 15:53 | 18 |
| Re: .2
Icons are documented in the ROM Kernal Manual in a chapter that has a
title like "Workbench." That is also the chapter that explains the
startup process for every program, in case you are interested.
The format of .info files is NOT documented. This was done on purpose.
It is possible to operate on icons exclusively using a few primitives
described in the chapter.
GetDiskObject read and info and returns a documented data structure.
You may then alter that data structure as you see fit. Then call
PutDiskObject to write out the icon into a file. When you are through
with an icon, you should restore it to its original state, then call
FreeDiskObject to deallocate it.
If you use the above procedure, you never need to know the format of
.info files.
|
1637.4 | IconLab V1.1 | LOWLIF::DAVIS | That's not a BUG, it's a FEATURE! | Thu Sep 01 1988 18:26 | 6 |
| I've got a little utility that combines the functionality of Brush2Icon,
AltIcon, and IconType that I'll upload this evening. It is also a nice
alternative to the WorkBench Info utility that lets you change tool types,
etc. File will be MDKCSW::DUA2:[DAVIS.AMIGA]ICONLAB.ARC
...richard
|
1637.5 | I did it ! Do you wanna share ? | CESARE::ZABOT | Marco Zabot-Adv.Tech.mgr-Turin ACT | Tue Sep 06 1988 07:35 | 49 |
| This is the README file from
CESARE::ENG_AREA:[zabot.ledump]ICONS.ARC
The ARC is in Amiga format. It is very small.
to -1.
( I will give a look to soon to your ICONLAB. Thanx).
------
These icons have been created to have a quick view of what you're
looking for. I was really fed up of loking at a floppy image when
I was opening an HARD DISK !
The second icon is for use with WB 1.3. If you want to use the
FAST FILE SYSTEM ( it's really fast indeed ) you already have
the icon.
Usage.
------
If you're reading this file you've already dearched ICONS.ARC
and have 3 files:
README
D1.UUE
D2.UUE
UUdecode the two files with:
UUDECODE D1.uue
UUdecode D2.uue
and you'll have two new files: D1.INFO and D2.INFO
DON'T try to see the icons before copying them to the a device.
( If you open the RAM: disk [ you're working on RAM: or VD0: don't you ??]
you will just see NOTHING 0.
Make a :
Copy d1.info RAM:DISK.info
Now open the RAM: disk ! and you'll see the icon.
Enjoy it.
marco
*** This has been done with the precious help of Randy Mayers who ***
*** suggested to me the right procedure to create the DISK icons ***
*** Thanks, Randy ! ***
|