Log in

View Full Version : Icons on windows


Matrix
Feb 26, 2002, 09:56 PM
OK, this is windows problems related not Jazz probs related but still...

Since I program for the mac I don't know very much about windows programs and how to do things like make icons, change the screen rez (you can do that can't you?), ect..

But my question:
I have a program for th emacintosh that can create icons for Mac System 7, MacOS 8 & 9, MacOS X, Windows and Win XP. Now if i save the icons for win or win xp i get an .ico file. But if i put this inside the folder where my app resides the icons don't appear, or so i'm told..

So how do you make the icons appers under win and win xp?

Thanks for any help,
Matrix

Link
Feb 27, 2002, 06:18 AM
The icons for programs are stored inside the program executable. You have to get a program that can write icons right to the program file. Most programming languages have that ability though. Make the main form have the icon you want, and it should program it right in there.

The only time you need separate .ico files is if you want other people to use your icons, or you are making an MS-DOS program (which cannot have built-in icons)

For changing the screen resolution, you have to use Windows API functions.

Use <a href="http://www.allapi.net/apilist/apifunction.php?apifunction=ChangeDisplaySettings">ChangeDisplaySettings()</a>