Hi, is there any way how to include icon in exe? I want to distribute only one file (exe), not two files (exe, icon).
It is somewhat possible?
Window icon in source code
Re: Window icon in source code
Hi,
Use checkbox "Use icon " In Compiler options and choose icon file.
tom
Use checkbox "Use icon " In Compiler options and choose icon file.
tom
registered user
Re: Window icon in source code
I was trought that icon need be inclued near exe even in this case, but seems no. Maybe it was in older version of Purebasic. Ok, thanx.
-
- User
- Posts: 10
- Joined: Thu Aug 05, 2010 4:15 pm
Re: Window icon in source code
Hi.
By setting the compiler's resource options you can include as many Resource scripts as you want.The resources will be compiled and included with the executable.
By setting the compiler's resource options you can include as many Resource scripts as you want.The resources will be compiled and included with the executable.
Re: Window icon in source code
But how to create .rc files and how to access them?
With that ico I have one problem. When I use 64x64px icon, then small version (16x16) is ugly. Is possible to add more icons with different sizes?
With that ico I have one problem. When I use 64x64px icon, then small version (16x16) is ugly. Is possible to add more icons with different sizes?
Re: Window icon in source code
You only need to make more versions of your icon at different sizes (16x16,32x32,48x48,64x64, or whatever you like) and then combine all icons in one .ico file and then use that combined .ico file in PureBasic compiler options. I do it with this program:
But you can find alternatives here on forum, i think netmaestro posted some code for doing same thing in PureBasic (this program above is written in .Net)...
-
- User
- Posts: 10
- Joined: Thu Aug 05, 2010 4:15 pm
Re: Window icon in source code
You can create your ico file by using this program:Axialis IconWorkshop.
And then find Resources help from the PureBasic.CHM file or open this url : http://www.purearea.net/pb/english/manu ... piler.html
Sorry for my English.
And then find Resources help from the PureBasic.CHM file or open this url : http://www.purearea.net/pb/english/manu ... piler.html
Sorry for my English.