home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 25 Icons / 25-Icons.zip / ICONS_HS.ZIP / 00READ.ME next >
Text File  |  1989-09-04  |  4KB  |  85 lines

  1. Hi,
  2.  
  3.   This file was created by Kevin Lowey, sysop of Fidonet node 140/43,
  4. LOWEY.SASK.USASK.CA on Internet.  The file describes how to use the .ICO
  5. files in this archive to create Presentation Manager icons for full
  6. screen programs.  It was added to the original distribution of .ICO
  7. files (which was NOT created by me) so that people would know how to use
  8. the .ICO files.  This file was NOT a part of the original distribution. 
  9.  
  10.   OS/2 has two types of programs.  Presentation Manager programs are
  11. applications designed for the OS/2 Presentation Manager found in OS/2
  12. version 1.1 and higher.  Full Screen applications ignore the
  13. Presentation manager and do everything using the full screen. 
  14.  
  15.   The OS/2 Presentation Manager has the ability to run most full-screen
  16. applications in a "text window".  This is a window that can be moved on
  17. the screen, re-sized, etc.  just like any other Presentation Manager
  18. window.  It can also be shrunk down into an Icon to give you more room
  19. on the desktop. 
  20.  
  21.   True Presentation Manager applications include the icon as part of the
  22. program, however, since Full Screen applications don't know anything
  23. about Presentation Manager, they also don't know anything about Icons. 
  24.   
  25.   By default, when a text window is minimized to an Icon, you get a
  26. "blank screen" icon.  Unfortunately, if you have many different programs
  27. running in various text windows, such as Kermit for OS/2 in one window
  28. and MicroEMACS in another, there is no way of telling them apart by
  29. looking at these "blank screen" icons. 
  30.  
  31.   OS/2 provides a solution to this using .ICO files.  A number of these
  32. have been included in this archive.  These are files which describes an
  33. icon to OS/2.  OS/2 associates this icon with the executable file in the
  34. same directory as the .ICO file with the same first name as the .ICO
  35. file.  In this way we can use the .ICO files to create icons for
  36. programs not originally written for the Presentation Manager. 
  37.  
  38.   Below is an example of using these Icons.  I'll assume you wish to use
  39. the TYPEWRIT.ICO file (a picture of a typewriter) as the icon to
  40. represent the MicroEMACS editor (in the file c:\OS2PRG\EMACS.EXE).  To
  41. simplify the example, I'll assume that the .ICO files are stored on a
  42. floppy diskette on drive a:. 
  43.  
  44. 1) From Presentation Manager, start up either the Windowed or Full-Screen 
  45.    OS/2 command prompt.
  46.  
  47. 2) Copy the desired .ICO file from the floppy diskette.  Rename it as you 
  48.    copy so the first part of the name is the same as the .EXE file you 
  49.    wish to execute.  Be sure to copy the .ICO file into the same directory 
  50.    as the .EXE file you want the icon to be associated with.
  51.  
  52.    COPY A:TYPEWRIT.ICO C:\OS2PRG\EMACS.ICO
  53.  
  54. 3) Return to the Presentation Manager by typing EXIT.
  55.  
  56. 4) Install the application (EMACS in this case) into your "Start Programs" 
  57.    menu.  Tell "Start Programs" that the program should run in a text window.
  58.    (See your OS/2 manuals for more details on installing applications in the
  59.    Start Programs menus)
  60.  
  61.  
  62.   That's all there is to it.  Now you can either use the "start" command
  63. from the STARTUP.CMD file to start the EMACS program automatically at
  64. boot time, or you can select the EMACS editor from the Start Programs
  65. menu.  When you minimize the program into an icon, the icon described
  66. by the .ICO file will be displayed. 
  67.  
  68.  
  69.   IN SUMMARY
  70.  
  71.   For the .ICO files to work, remember the following:
  72.  
  73.    1) It only works with .EXE or .COM files (NOT .CMD files)
  74.  
  75.    2) The .ICO file must be in the same directory as the .EXE or .COM file.
  76.  
  77.    3) The .ICO file will only work when using the START command or when 
  78.       selecting a file from the START PROGRAMS menu.  It will not use that
  79.       icon if it is run from the OS/2 Windowed Command Prompt.  (When you 
  80.       minimize a program running in the Windowed command prompt, you are
  81.       actually minimizing the Windowed Command prompt, so you get its
  82.       "blank screen" icon, not the icon of the application running within it).
  83.  
  84. -- Kevin Lowey
  85.