Information of icon creation
index.htm Return to index page.
pk.bmp This is pk.bmp in the original form, 64*64 in size, and 256 colors, created using MSPAINT.EXE come with Win95.
pk.bmp This is how it look in the 16*16 pixels, 256 colors, small icon view.
pk.bmp This is how it look in the 32*32 pixels, 256 colors, large icon view.
pk.ico This is pk.ico converted from pk.bmp, inside this icon have two images(16*16 and 32*32) to make it display properly in small are large icon view.
To make sure the icon are converted properly from bitmap, the size of bitmap should be 32*32, 64*64, 128*128 and so on.
If a EXE contain multiple icon, the smallest icon's ID will be the icon show by Windows, this can be numeric or string. e.g.
RESOURCE WINS ICON Wins.ico
RESOURCE PK ICON pk.ico
In this case we use string icon ID, pk.ico will be show by Windows.
But if we use numeric icon ID in this way,
DEFINE WINS:=101
DEFINE PK:=102
Wins.ico will be show by Windows.
Wins.ico will show by Windows due to the the icon ID are 101, which are the smallest.
If numeric icon ID does not define, then the icon ID will treated as string, Windows will pick the smallest in the alphabatical order.
If full path does not specified, Resource Compiler will look at the icon at the setting of File->Setup->System Options->Path for PRG Files:
But to make sure the icon will appear in Application->Properties->Icon, use full path, eg. RESOURCE IDI_PKICON ICON E:\WONG\PRG\pk.ico
Application->Properties->Icon will determine what show in Repository Explorer, but will not affect what show in Windows.
Image Editor can't open icon with multiple images, this included Wins.ico. But RESOURCE statement do accept icon with multiple images.
To show the icon on the task bar:
ShellWindow:Icon:=Icon{ResourceID{"PK", _GetInst()}}
Or if numeric ID:
ShellWindow:Icon:=Icon{ResourceID{102, _GetInst()}}