Test Application Icons
Test_Application_Icons.exe is a simple program to check how Windows
uses application icons of various sizes.
The associated icon resource contains 8 icons in the following order.
Unlike normal application icons which are similar in appearance,
each of these icons is unique and indicates what size it is.
|Default Icon (100x100)
The basic idea is to place the application in some directory and just try
and see which icon is displayed under various conditions.
Basically, running the application places
In Windows Explorer, the following icon sizes are used by the associated view options
- A 16x16 icon in the taskbar and the window title bar
- A 32x32 icon in the alt-tab selector
The other icons were never displayed in Windows XP, except that the AboutBox
explicitly requests the 64x64 icon.
- 16x16 - Details & List
- 32x32 - Icons
- 48x48 - Thumbnails & Tiles
This zip file
contains both the exe and the associated ico file.
I have additional pages on
Creating icons with GIMP, and
Press F1 to see the AboutBox.
The code for this is extremely simple.
Place, name, and size 8 TImage components - and load the icons.
The AboutBox was added and populated by just adding a custom action to the form.
It displays the 64x64 image.
procedure setIcon(Image: Timage; size: integer);
LoadImage(MainInstance, 'MAINICON', IMAGE_ICON, size, size, 0);
procedure TForm1.FormCreate(Sender: TObject);