|
Windows Display Icon |
Todd Cope
Member #998
November 2000
|
In Allegro 4 I was able to get an icon on my program's window by compiling a resource file with ALLEGRO_ICON ICON my_icon.ico in it. Allegro 5 provides the al_set_display_icon() function, but I am wondering, what is the best way to do it? In my current project I have an icon file with multiple sizes of the icon I wish to use embedded in the executable using the above method, but that icon doesn't appear at the top of the window. Using the al_set_display_icon() function limits me to a single size, which may not look great on some configurations. Is there any way for me to use the embedded icon as the display icon? If not, what size is the best to use with al_set_display_icon()? |
SiegeLord
Member #7,827
October 2006
|
Todd Cope said: Using the al_set_display_icon() function limits me to a single size, which may not look great on some configurations. Maybe try al_set_display_icons()? "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Todd Cope
Member #998
November 2000
|
Ahh, didn't see that function. I will try it. Append: It works great! Thanks for pointing it out. |
Neil Roy
Member #2,229
April 2002
|
Todd Cope said: Ahh, didn't see that function. I will try it. Seems the manual needs to be updated as the release version is 5.0.10 and that function was introduced in 5.0.9, yet it still isn't listed (it's in the 5.1 manual). --- |
|