home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 368 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: phoenix.rhein.de!yaps!arno
  2. From: arno@yaps.rhein.de (Arno Eigenwillig)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Writing a .info file
  5. Message-ID: <uaDUx*B+e@yaps.rhein.de>
  6. Date: Sat, 06 Jan 1996 17:30:06 +0100
  7. References: <19084183@cacios.locebbs.chnet.ch>
  8. Organization: Yet Another Private Site in Meckenheim, Germany
  9. X-Copyright: This article may not be distributed on a CD-ROM
  10.  or in printed form without prior written consent of the author.
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <19084183@cacios.locebbs.chnet.ch>, "Stefano Cairoli" writes:
  14.  
  15. > I know how to read an icon file and how to scan the tooltypes records, but
  16. > I don't know how to change/add/delete a tooltype and then write the new
  17. > .info file back.
  18.  
  19. GetDiskObject(), create a NULL-terminated array of pointers to zero-
  20. terminated strings (the tool types) and use it as do_ToolTypes and
  21. PutDiskObject(). It is _important_ that you restore the original value
  22. of do_ToolTypes before calling FreeDiskObject()! (Perhaps not for your
  23. particular revision of icon.library, but in general.)
  24.  
  25. -- __
  26. __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
  27. \XX/   V+49-2225-5870  /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
  28.