Re: [AD] Proposal for a set_icon function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> and then I've sit down and coded a little utility for BeOS that works
> from the command line and allows to attach an icon to an exe, by passing
> an image of any size/color depth (as long as it's in a format supported by
> Allegro of course).
Great !
Does attaching to an already generated exe involve much trickery on BeOS ?
> I've called this utility bfixicon, and it is meant to be used from a
> makefile for example, to fix the program icon after the exe has been
> compiled. It works this way:
>
> bfixicon exefile largeiconimage [smalliconimage]
A nice feature for the utility would be to let the user extract the image
from his datafile:
bfixicon exefile -d datafile.dat n [-d datafile.dat m] where n and m are the
image indexes.
> If smalliconimage is not present, the large one is stretched and used to
> automatically generate it. The program source is about 5K, and it would be
> cool if it was included into the Allegro distro.
The tools directory is there for this purpose I think.
> Elias is already working on a wfixicon tool, which will be similar to the
> BeOS one, but for Win32. Details on this have still to be defined;
> currently the program is meant to generate a .ico from an image, to be
> used into a .rc file, but I don't know the details. Elias?
Great (2) !
Maybe can we also provide a script that automatically generates the object
file (or is that really overkill) ?
> A ufixicon should also be possible, and it would be used to generate a
> .xpm icon. What do you think?
I'm not an X11 specialist but I think it could be useful too.
---
Eric Botcazou
ebotcazou@xxxxxxxxxx