changing the .exe icon
BlitzMax Forums/BlitzMax Beginners Area/changing the .exe icon
| ||
How do i change the exe icon from the one that blitzmax creates on Windows. I need to add a .ico so it has a picture. Cheers Charlie |
| ||
Just create an object file containing the icon resource (with windres, for example) and import it. Here's a simple front end for windres... MakeObject.zip ~170KB ...includes example code for setting the icon on a Max2D/MaxGL window's title bar, etc. |
| ||
Thanks, that looks great. Also, how do i creat an object file (i'm newish to windows so humor me) Cheers Charlie |
| ||
BlitzMax Application icon guide |
| ||
Erm...you...run...'MakeObject.exe' ?? ;op Unless of course, you haven't got MinGW installed. In which case, you install MinGW and then...you...run...'MakeObject.exe'. ;o) |
| ||
I tried the "BlitzMax Application icon guide" mentioned by Jim Brown. It works great and is fairly easy to use. And no hacks. I had been looking for the right way to set the icon for months and I think that was what I was looking for. |
| ||
yep it works great, but it won't set the icon on the title bar or in the alt tab task switcher...I've posted some code for that in the code archives somewhere...click my name then click code archive entries. |
| ||
My head hurts... |
| ||
On my computer it changed the exe icon, titlebar icon, task manager icon, alt-tab thingy, start bar, and everything else. I don't know if this matters, but i used an icon file i created that had multiple formats on it (16x16,32x32,48x48, true w/alpha color, 256 color,...) |
| ||
That's because your using MaxGUI. You need additional code for the same thing to happen when using a normal Max2D or MaxGL window. Hence... ...includes example code for setting the icon on a Max2D/MaxGL window's title bar, etc. ...in my first post. |
| ||
ok I take it back, you only need my code in limited circumstances :-) |
| ||
What about Blitz3D? |
| ||
Resouce Hacker |
| ||
Or use the Protean IDE. Let's you assign an icon to each of your projects and is done for your automatically every time you compile. |
| ||
Oh, ok Thanks. |
| ||
Does someone know an icon fix for the maxgui beta module? |
| ||
Well, "Adding icons to BlitzMax Win32 executables" (see http://homepage.ntlworld.com/config/max/appiconguide.htm) describes how to define icons for Win32 applications - but what about MacOSX and Linux? How do I modify the application icon on these platforms? |
| ||
For Mac, look here (step 3) and read the bit about Icon Composer. No idea what to do under Linux. |
| ||
Thanks for the hint - I'll try it! |