[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

2751.0. "Icon editor and icons in general" by NZOV01::MCKENZIE (and all the while, the Dragon slept) Thu Jul 20 1989 08:24

    Hi everyone...
    
    I've been in the process of writing a few applications over the
    past few months for my paintball social club. They are all written
    in basic and I'd now like to tart up the icons. I have read up on
    and used the icon editor but I have a couple of questions:
    
    o Is there any way I can select an Icon which points to a non-compiled
      basic program and get that program to run. Every time I try I
      get error 205 appear in the top of the window. 
    
    o Is there any way I can get the icon to change shape after initial
      selection. I have seen a number of packages that do this (award
      maker + for example...the Icon shows "award maker" and when you
      select the icon and press the left mouse button once, the icon
      is extended and the word "PLUS" appears as well"
    
    Thanks in advance
    
    Phil
T.RTitleUserPersonal
Name
DateLines
2751.1ICONSWJG::GUINEAUThu Jul 20 1989 09:4820
>   o Is there any way I can select an Icon which points to a non-compiled
>      basic program and get that program to run. Every time I try I
>      get error 205 appear in the top of the window. 
 
You need a project icon with the name of the program and the defualt tool
being AmigaBasic.

>    o Is there any way I can get the icon to change shape after initial
>      selection. I have seen a number of packages that do this (award
>      maker + for example...the Icon shows "award maker" and when you
>      select the icon and press the left mouse button once, the icon
>      is extended and the word "PLUS" appears as well"

Either use the neat new IconMaster program Ed A. just uploaded
(WJG::AMIGA:ICONMASTER.ZOO) or use the MergeICON program from WB 1.3 in the
SYS:Utilities/ drawer (or is that SYS:Tools/ ?)


John
2751.2NOTICL::MCGHIEThank Heavan for small Murphys !Thu Jul 20 1989 23:337
    Hi,
    
    by default when you create a Amigabasic program, the icon created when
    you save the file allows you to run the program directly.
    
    regards
    	Mike
2751.3NZOV01::MCKENZIEAll the while,The Dragon SleptThu Jul 20 1989 23:534
    yep - that right - until you use ICONED to change the  appearance
    of the icon - it doesnt work after that
    
    Phil
2751.41.5?WJG::GUINEAUFri Jul 21 1989 08:249
>    yep - that right - until you use ICONED to change the  appearance
>    of the icon - it doesnt work after that
>    
>    Phil


So much for an "Integrated Desktop", huh? Maybe 1.4?!?

JOhn
2751.5You blew your default toolYUPPIE::WILSONFri Jul 21 1989 17:243
    Mayhaps you need to reset the DEFAULT TOOL entry in the .info?
    
    
2751.6IconEd Advanced FeaturesTLE::RMEYERSRandy MeyersFri Jul 21 1989 19:4554
Re: .3

[If you click on an AmigaBasic program icon, the BASIC program will
run]

>    yep - that right - until you use ICONED to change the  appearance
>    of the icon - it doesnt work after that

Looks like you've misused IconEd.  IconEd does preserve the information
in an icon.  However, you can also use IconEd to replace the image of
an icon with another image leaving all of the other information in the
icon intact.  (A rather useful feature actually.)

This isn't documented very well, and it is confusing.

Each one of the icon boxes in the IconEd represents an entire icon, not
just an icon's image.  Each box stores the default tool of the icon
loaded into it, the tool types of that icon, the the type (project,
tool, drawer, trashcan, disk) of that icon.

So, the following procedure will copy one icon's image to another leaving
all the other icon information unchanged:

	1. Click in the first icon box, and load an icon from disk.
	2. Click in the second icon box, and load an icon from disk.
	3. Copy the image of the first icon to the second.
	4. Click in the second icon box, and save the icon to disk.

The icon just written to disk is exactly as it was, except that it
has a different image.

You can use the above procedure to change an icon from a project to
a tool.  Load the project icon.  Load a tool icon.  Copy the image of
the project icon to the tool icon.  Save the tool icon as the project
icon.

I believe the above is what you accidentally did.  All of the icon
boxes of IconEd are initialized with IconEd's own icon (a tool
icon).  You probably loaded your BASIC program's icon, edited it,
copied it to another slot to try some other image modifications,
and then saved the pretty new image (attached to another icon box).

If Info show the BASIC program is a tool, the above probably is
what is wrong.  (AmigaBasic programs should have project icons
with a default tool of :AmigaBasic.)

To correct the situation:

	1. Run IconEd.  
	2. Load the bad icon into the first box.
	3. Load in the icon of another basic program into the second box.
	4. Copy the image of the first box to the second.
	5. Click in the second box, and the save the icon as the
	   icon of the program with the bad icon.
2751.7More IconEd tipsTLE::RMEYERSRandy MeyersFri Jul 21 1989 19:508
As my reply in .6 shows, each IconEd icon box contains a full icon,
not just the image of the icon.  That doesn't mean you cannot use
all the icon boxes as scratch pads while trying out different
modifications to the icon's image.  Just remember to copy the
images you want back to the original box, and save that box
when you are through.


2751.8ThanksNZOV01::MCKENZIEAll the while,The Dragon SleptWed Sep 13 1989 01:219
    Thanks for your help Randy - as usual you were exactly right...
    I have fixed the problem and all works ok...
    
    ...Now - If I can just get hold of a utility to flip icon pictures
    I'll be a happy camper...;^)
    
    Thanks again
    
    Phil
2751.9LEDS::ACCIARDIWed Sep 13 1989 02:016
    
    Phil, get ahold of IconMaster (it's on my starter disk, which you were
    going to obtain from me).  It's a
    do-everything-that-it's-possible-to-do-with-an-icon utiltity.
    
    Ed-who-hates-when-people-connect-every-word-in-a-sentence-with-dashes
2751.10Hmmmmm.....NZOV01::MCKENZIEAll the while,The Dragon SleptWed Sep 13 1989 02:096
    Thanks Ed - havent you received the disk I sent you yet? gee its
    been about 2 weeks since I sent it...
    
    *sigh* cant trust the internal mail system huh? ;^)
    
    Phil
2751.11LEDS::ACCIARDIWed Sep 13 1989 08:354
    
    No sweat... I'll send one out to you tonight.  
    
    Ed.
2751.12Ahhh Ed - Once again you save the day! :-)NZOV01::MCKENZIEAll the while,The Dragon SleptWed Sep 13 1989 18:0310
    Thanks Ed - If the disk I sent you hasnt arrived by the end of the
    week, send me your home address via EM and I'll send another disk
    to you...
    
    Our internal mailbag goes through Australia ... that means the disk is 
    probably on its way to Red China or something...;^)
    
    Keep me posted...
    
    Phil
2751.13Why not make it available to everyone?FINSER::BARRETTWait'll they get a load of meThu Sep 14 1989 00:281
    
2751.14It's in there...LEDS::ACCIARDIThu Sep 14 1989 08:294
    
    It is.  See NORSE""::AMIGA:[UTILITIES]
    
    Ed.