home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DTP / GEOICONS.ZIP / ICONEDIT.TXT < prev    next >
Text File  |  1992-05-03  |  3KB  |  66 lines

  1. Icon Assignment For GeoWorks Files.
  2. Cami Lee
  3.  
  4. (c) Lee W. Grant Copyright 1992  
  5.  
  6. On a whim, I wanted to use the New Icons that were
  7. uploaded by Jim Kirkpatrick and Jay Degn. I wanted to 
  8. use, in particular, the "DCAD" Icon for some of the work
  9. that I had been doing in GeoWorks.
  10.  
  11. I was using a scrapbook to hold some of the work I had created,
  12. and to keep from confusing myself, I wanted that Icon for those
  13. specific files.
  14.  
  15. After a number of attempts to change my Geos.INI file (not recommended
  16. by GeoWorks by the way. ;), to allow for the assignment of the Icon to
  17. the files I had in mind. I discovered that the Ini. file does not recognize
  18. icon assignments to Geos' .000 files.
  19.  
  20. Somewhere in the back of my mind, I seemed to recall something about 
  21. using a hex editor to change the numbers or something for Fonts, so that
  22. they would load properly.
  23.  
  24. Using my PcTools 7.1 PcShell, I opened the file and "looked around".
  25.  
  26. I made two discoveries this day.
  27.  
  28. 1.) Changing the numbers of the file icon assignment alone, would bring up
  29. the Geos "Background" style Icon when Geos was restarted.
  30.  
  31. 2.) By changing the Hex number "right next" to the name (in hex) would bring
  32. up the desired Icon.
  33.  
  34. In either case, a different Icon then the one originally assigned to the file
  35. would show up, AND the file would work as normally. (Thank Goodness) ;)
  36.  
  37. Anyways, unless you are familiar with a hex editor, (Which I'm not particularly,
  38. but I've been known to mess with what I don't know;) you really shouldn't try
  39. this.
  40.  
  41. When the hex editor pops up (At least in PcTools it did this.) you will have the
  42. hex numbers on the left, and the "perceived" symbols on the right.  In my case,
  43. the "text" that I was looking for, was on the right as "scbk" and on the left as 
  44. 0016(0010) 01 00 00 00 73 63 62 6B 00 00 53 63 72 70 00 00   
  45.  
  46. The hex numbers representing the "scbk" are "73 63 62 6B".  When I originally changed
  47. the four sets of hex numbers to the equivalent of "DCAD" for the Blue colored Blueprint
  48. Icon, and then restarted GeoWorks, the "Background" type of file Icon came up. 
  49. The scrapbook would work, but it didn't have the Icon that I wanted. So, it dawned on me
  50. that the new Icons are supposed to be written like so.  *.EXE= "DCAD",255. Well, I figured 
  51. that the "255" is what was missing.  On sheer luck, I went back into the hex editor, and put
  52. the hex equivalent of 255 right next to the "DCAD" hex numbers, and when I returned to
  53. Geos, the proper Icon was indeed, now representing the Scrapbook file that I had saved.
  54.  
  55. The hex line now looked like so:
  56. 0016(0010) 01 00 00 00 44 43 41 44 FF 00 53 63 72 70 00 00   
  57. The equals were as such, and remember to use the hex equivalents for Capital letters:
  58. D=44, C=43, A=41, D=44, FF=255.
  59.  
  60. With this example, I think even the most novice of programmers (like myself) should 
  61. have no trouble at all, assigning Icons to "Specific" GEOS files, as I have done.  It's a bit awkward
  62. but until something is "built" to automate this for us, It's the best that I can do. ;)
  63.  
  64. Your's In Geos,
  65. Cami Lee
  66.