[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

2430.0. "help with icon/drawer creation" by LINCON::MGAINES () Tue Apr 04 1989 11:32

    
       I have a novice question here for you AMIGA pro's.  I just
    recently bought my system 2nd hand, I love it! But I am having
    a little trouble adjusting etc.
    
     	I formatted a disk and gave it the volume name PDDISK. I then
    	down loaded a program MCAD.ARC to the disk to a directory I
    	created earlier using CLI commands. The directory created was
    	MCAD. After copying the program to the directory, I double
    	clicked on the PDDISK ICON. The window displayed a trashcan,
    	and nothing else. If I selected the trashcan nothing was there...
    	If I went back into CLI and performed a dir DF0:MCAD, I could
    	see the program MCAD and I could run it by typing MCAD at the
    	CLI prompt.
    
    	How do I create a drawer to run the program MCAD via ICON
        selection? Keep in mind W.B. is not on the PDDISK, it is 
        on a seperate disk. I do have a 2 disk system with 1 meg.
    	I could not find any clear information on performing this 
    	task in my AMIGA DOS manual or other books I have. Any help
    	is appreciated.
    
    				Thanks
    
    				M. Gaines
    
T.RTitleUserPersonal
Name
DateLines
2430.1need .info fileSAUTER::SAUTERJohn SauterTue Apr 04 1989 11:398
    The Icon is held in a .info file, whose name matches the directory
    name.  Just copy a .info file from your workbench disk, giving it
    the name MCAD.info on PDDISK.
    
    If you were starting from scratch you could use Workbench to copy
    the Empty Icon to PDDISK, then rename it to MCAD using the pull-down
    menu.  Once this is done you can copy MCAD.ARC to PDDISK/MCAD.
        John Sauter
2430.2TALLIS::MCAFEESteve McAfeeTue Apr 04 1989 12:028
    Also, make sure you get the correct type of .info file.  Not just any
    one will do.  You need to copy the .info file of a drawer.  If I
    remember correctly there are five types:  disk, drawer, program,
    project, and trashcan.  (Or is trashcan just a drawer?)
    
    regards,
    
    steve
2430.3I'll try tonight.LINCON::MGAINESTue Apr 04 1989 13:183
    Thanks John and Steve in replies .1 and .2 . I'll try it tonight.
    
    			Mike
2430.4still having problem.LINCON::MGAINESWed Apr 05 1989 10:0023
	Well I got the drawer to show up in the window by copying
    expansion.info onto DF1: I rename expansion.info to mcad.info and
    I now get the mcad drawer. However when I click on the new drawer
    the drawer opens but mcad never executes. I get a message on the
    screen that say mcad is not a directory... where do I go from here?
    I can start MCAD from CLI by typing MCAD. I want to execute it from
    the mouse.
    
    	Originally I performed the following steps to create the disk.
    
    	1) format
    	2) copied mcad.arc to df1:
        3) extracted mcad.arc on df1:
    	4) makedir mcad on df1:
    	5) copied mcad files to mcad directory
    	6) copied from DF0:expansion.info to df1:
    	7) renamed df1:expansion.info to mcad.info
    
    	Could someone tell me what missing or what I'm still failing
    to do. Thanks! signed a novice novice user who wishes he wasn't.
    
    
    				Mike
2430.5Try XICON or ICONXAKOV11::SMITHEd...Wed Apr 05 1989 10:4822
    I was fighting a  similar problem not to long ago.   Here's what 
    I did to ICONize a program that didn't come with an ICON...  

    You  need to use  ICONX  (included with WB1.3) or better yet the 
    PD utility XICON.  Either of these allow you to execute a script 
    file from a project icon.   For example,  if you create a script 
    file called MCAD-SCRIPT with the following CLI commands in it:

    			CD DF1:MCAD/
			MCAD

    Then copy any  project incon and rename it to  MCAD-SCRIPT.info.  
    Then change it's default tool to C:XICON (or what ever directory 
    has XICON).   Now when you double click on the icon a CLI window 
    is opened and  the above  script will be  executed.   If you use 
    XICON  it also allows you prevent the display of the  CLI window 
    by setting MODE=nowindow (explained in the doc file).  This will 
    make it look like any ICONized program.

    Good Luck,

     ...Ed
2430.6MTWAIN::MACDONALDWA1OMM 7.093/145.05/223.58 AX.25Wed Apr 05 1989 14:0111
    Sounds like you assign the drawer icon MCAD.INFO to MCAD the program,
    rather than MCAD the directory. You need to create a directory and
    place MCAD the program into that directory. Use the MAKEDIR command.
    The drawer icon opens up a directory. In this case, you would want
    to create a directory called MCAD. Then copy the program into the
    directory along with an icon (a tool type icon). Then when you open
    the MCAD drawer, the icons for any programs in that directory will
    be display - in this case MCAD the program. You might have to rename
    either the directory or the program. Say, name the directory CAD,
    the drawer icon CAD.INFO. The program and tool icon in the CAD
    directory would then be named MCAD and MCAD.INFO.
2430.7CAN'T BELIEVE I DID THIS!LINCON::MGAINESThu Apr 06 1989 00:009
    Well I blew it now... I discovered that the command delete df1:
    #? all really deletes everything!!! (@$%$#@%$#@%$#@%). Brother this
    sure isn't VMS. I created a directory cad with the makedir function
    and coppied all the files in the df0: directory to the cad directory.
    I then wanted to delete the files in the DF1: directory, not the
    cad directory. Oh well another day another time I'll learn... Only
    why does learning so often require such pain. (my head hurts)
    
    				Mike
2430.8I think he wants a tool icon.ATLS17::MCDONALD_JSurly to bed, surly to rise...Thu Apr 06 1989 00:1166
Wait a minute.  I think Mike's trying to put an icon on the MCAD executable,
not the directory.  

Mike, there are several different types of Icons... Directory Icons (like the
drawer), Project Icons (like your Shell icon), Tool Icons (like the Handshake
Icon), and I'm not sure what else.  Basically, I think that Tool Icons pretty
juch do a "RUN imagename".  Project Icons have an associated Tool which they
run, but the icons themselves are attached to the datafile you wish that tool
to act upon.  For example, if you have a paint program naned AMYPAINT, you
would have a tool Icon named AMYPAINT.INFO which identifies AMYPAINT as it's
tool-to-run.  If you created a picture named MYPICTURE with AMYPAINT, you could
have a project Icon named MYPICTURE.INFO which has AMYPAINT as it's associated
tool. Clicking on this icon would RUN AMYPAINT loading your MYPICTURE picture.

That's how I understand things anyway.  (Somebody correct me if I'm wrong.)

Anyway, what you need to do is find a tool icon and copy it over to the
disk/directory where the MCAD program is located.  From your earlier comments,
it sounds as if your MCAD program is located at the top level directory of a
diskette.  For example's sake, I'll assume you've named that disk MCAD.  So
your MCAD program has the file spec "MCAD:MCAD".

To tell what type an icon is, click once on the Icon and then go up to your
WORKBENCH menu and select the INFO option.  You should get an info screen for
that Icon.  Right under the name in the upper left corner will be the type.  
A good tool Icon is the handshake icon.  Now you need to get that icon into
your MCAD directory.  From the workbench, open both the handshake diskette and
the MCAD diskette.  Point at the handshake icon, press your left mouse button
and hold it down, (this will pick up the handshake icon), move the handshake
icon over into your MCAD window, and release the left mouse button.  This will
copy handshake complete with its icon over to your mcad directory.  It also
updates that directories pointers so that it knows that icon is there.  After
that has completed, go into the CLI (or shell) and CD MCAD: to get to the mcad
directory.  Do a DIR.  You should see the MCAD files and also a file named
HANDSHAKE and a file named HANDSHAKE.INFO.  Enter the command 

	RENAME HANDSHAKE.info MCAD.info

This effectively makes that handshake icon into an mcad icon.  Also, delete the
handshake image from your mcad diskette with the command

	DELETE MCAD:HANDSHAKE

I mean, you don't need handshake on your MCAD diskette, do you?  Now you're
pretty much through with the cli, so you can do an ENDCLI.  

Now there's one more thing you have to do to wrap things up.  Close your mcad
window and re-open it.  This will cause the window to pick up the new info. 
When you re-open it, you should see the handshake icon but with the name MCAD
under it.  Single click this icon and then select the INFO option from your
workbench menu.  If the MCAD documentation specified that MCAD had to have a
certain size STACK, you can enter this stack size in the STACK field of the
INFO screen.  Once you've set the stack size (if necessary), you can save the
info by clicking on the SAVE box at the lower left corner of the info screen. 
If there are no changes, click the QUIT box.  

You should now be able to click on the MCAD icon and MCAD should come up.  Give
me a call if you run into any problems and we'll try to work through it over
the phone. 


					John


BTW, Hope you're enjoying your AMY as much as I'm enjoying mine.  My hardcard 
came in yesterday.  It's incredible.  It's a world above floppies.  :-)
2430.9LEDS::ACCIARDIThu Apr 06 1989 00:268
    
    A so-called directory utility program like DiskMaster (commercial, $35)
    will do wonders to ease a newcomer into Amiga file/directory structure. 
    These graphical shells allow you to perform most file management
    functions by pointing and clicking at filenames that are presented in
    'source' and 'destination' window.
    
    Ed.
2430.10OK! sounds good...LINCON::MGAINESThu Apr 06 1989 09:564
    Thanks John, I'll give this a try tonight. Sounds like this will
    be the solution. Still love my AMY only trying to adapt.
    
    	Mike
2430.11So you're the system manager...ODIXIE::WILSONTOFri May 05 1989 16:195
    re .7...
    
    Is this BYPASS priv on the AMIGA?