Re: Icon
Tomas Rylek <rylek <at> volny.cz>
2005-08-28 21:22:52 GMT
Hi!
In Windows, to assign your executable an application icon you have to create
a resource file (RC) and put the icon (an ICO file) into it. This really
sucks (especially as these resource files are not used for anything else in
U++), but unfortunately it is necessary to let Windows locate the icon in
the executable. TheIDE's icon editor helps a bit but there are still a few
steps you have to do by hand:
1) Open the iml file with your application icon in the icon editor.
2) Open the "setup" dialog; at its bottom, you'll find the "Application
icon" section. Choose a filename for the icon ICO file (e.g. "myapp.ico").
The path is relative to the iml file folder. Type the filename into the
"File" field.
3) Type the identifier of the large and small application icon (as set in
the icon list) into the "large icon" and "small icon" fields.
(Traditionally, applications should have a 32x32 pixels "large" icon, which
is shown on the desktop, and a 16x16 "small" icon which is shown in the file
explorer. However, you can use the same icon object for both; the icon
designer will rescale the icon as necessary, but with the potential danger
in losing detail.)
4) Select the color format for the icon; the smaller number of colors, the
shorter the icon file, of course. Moreover, if I'm not mistaken, certain
Windows versions - W98, I believe - have troubles displaying hicolor and
truecolor icons, so if you care, 16 or 256 color is the safest bet.
5) The above steps cause the icon editor to export the ICO file (under the
given filename, see step 2) whenever saving the iml file itself (normally
when switching to another file).
6) Insert an empty file with the extension "rc" into your main project
package. This will be your resource file. Its name doesn't matter.
(Continue reading)