[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

1637.0. "Icon problem ( DISK ICON )" by CESARE::ZABOT (Marco Zabot-Adv.Tech.mgr-Turin ACT) Wed Aug 31 1988 10:39

	Any one can suggest the right tools/procedure to produce a
	disk icon ??

	I done the following. 
	Designed the icons ( ratio 1:2 , wb color ) using DPAINT ii.
	Saved the icons as brushes.
	ZAPICON the two files.
	ALTICON the two new icons.
	ICONTYPE xx.info DISK

	This result in a nice icon, selceting which you got the second icon 
	correctly, but it freeze the system when double-clicked.

	Note. The same procedure with ICONTYPE xx.info TOOL work correctly.

	Any help / suggestion ?

T.RTitleUserPersonal
Name
DateLines
1637.1IconEd can change an Icon's TypeTLE::RMEYERSRandy MeyersWed Aug 31 1988 22:5134
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.2I'd rather be at home ....CESARE::ZABOTMarco Zabot-Adv.Tech.mgr-Turin ACTThu Sep 01 1988 12:503
    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.3Of course Chapter 20 explains the startup codeTLE::RMEYERSRandy MeyersThu Sep 01 1988 18:5318
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.4IconLab V1.1LOWLIF::DAVISThat's not a BUG, it's a FEATURE!Thu Sep 01 1988 21:266
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.5I did it ! Do you wanna share ?CESARE::ZABOTMarco Zabot-Adv.Tech.mgr-Turin ACTTue Sep 06 1988 10:3549
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 !						  ***