Re: [AD] Proposal for a set_icon function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
From: "George Foot" <gfoot@xxxxxxxxxx>
> I don't know whether people actually care very much what their
> icon is when they're running though -- it doesn't appear in many
> places. In the old days it used to appear on the desktop, but
> not any more; the only place I know where you get a full-sized
> icon is in the Alt-Tab task switching box, and you get
> half-sized icons on the bar thing at the bottom of the screen
This is exactly where we Windows-ites want it to appear.
> What most people want regarding icons is probably to be able to
> attach them to the executable. Maybe there's more demand for a
> utility program which converts an Allegro bitmap into an
> OS-specific icon (scaling it and converting colour depth if
> required) so you can attach it. I don't know how to attach in
> other OSes, and in Windows it varies between compilers, so even
> this is of limited use (you still need a load of OS and compiler
> specific commands to actually attach it, so it's not fully
> automated). Simply converting the format is quite useful,
> though there's bound to be a utility online which already does
> this, surely? :)
This needs to be done at compile-time, and it's done using the resource
editor for the Windows compiler. I don't know how the Mac and X handle it.
For Windows, we may not need this. Creating an icon with the
IDI_APPLICATION identifier does make the icon appear in the desired places;
the problem is that calling set_)window_title seems to clear the icon. Does
anyone with experience in the Windows guts of Allegro know how to keep
set_window_title from clearing the icon?
--Chris