Re: [AD] Proposal for a set_icon function

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Er, I may make myself seem stupid here (as always ;), but can't you have a
> set resource name for an icon (.rc windows):
> 
> ALLEGICON ICON "myicon.ico"
> 
> and check in the register class thing (if GetResource("ALLEGICON").....)
> then put it in the icon member before registering the class.... You then get
> the same icon for the exe as in the titlebar....

I was thinking the same. Actually, when someone pointed out in this thread
that windows does this automatically when you name the icon IDI_APPLICATION,
I renamed all my icons to that.. and now all my windowed allegro programs
display nice icons, just like standard applications :) So this discussion
certainly only is relevant for non-windows systems.. (only X-Windows to be
more specific, as BeOS doesn't seem to allow changing of icons at run-time)

--
Elias Pschernig



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/