[Solved] Compiler uses wrong icon

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

[Solved] Compiler uses wrong icon

Post by IdeasVacuum »

Under Compiler Options you can check "Use Icon" and enter a path to an icon. That works fine - unless you are also including a resource file, in which case, if the .rc lists icons, the first icon in the list is used instead. :(
Last edited by IdeasVacuum on Fri Aug 17, 2012 1:35 pm, edited 1 time in total.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4997
Joined: Sun Apr 12, 2009 6:27 am

Re: Compiler uses wrong icon

Post by RASHAD »

Icon resource ID 1 is reserved for the program icon
Start your rc file with 2
Even you can add icon as 1 for the program in the rc file and do not use the compiler option
Egypt my love
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Compiler uses wrong icon

Post by IdeasVacuum »

Hi Rashad - yeah, I know and I have, but I think the compiler option should be taking precedence over the resource file.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18360
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Compiler uses wrong icon

Post by Fred »

We can't as we also use a resource file. Using an external resource file is an advanced feature, so you have to know some subtilities as this one :)
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Compiler uses wrong icon

Post by Josh »

hi ideas,

if you use a resource file, use the compiler options too. if not, in the task manager is shown a standard icon.

testet Win7/64
sorry for my bad english
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Compiler uses wrong icon

Post by IdeasVacuum »

Ah well Fred, no worries then :)

Josh, thanks for that tip.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Compiler uses wrong icon

Post by dobro »

I have this problem with the latest version of Japbe ... without using resources ;)

and you ?
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Compiler uses wrong icon

Post by IdeasVacuum »

Hi dobro. I think that could simply be a Japbe issue. You can put that to the test by using the PB IDE. How do you create your icons? Do you know for sure that they are not corrupt in any way?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: [Solved] Compiler uses wrong icon

Post by dobro »

I think that could simply be a Japbe issue
yes , exactly ....

Hi, I use IcoFX and GFIE ..

and these icons work, with the official editor and with EPB (my editor) ... (on compiling a prg to 8000 lines)

it's just with Japbe,(v 3.12.8.872) that it does not work ..

(and I'm not talking about delays of Japbe, due to 8000 lines..
was due to updates of variables, Bookmarks, etc. .. has each copy and paste ) ;)
and I only program, with copy and paste.... :?

I thought IdeasVacuum can be used Japbe
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: [Solved] Compiler uses wrong icon

Post by IdeasVacuum »

No doubt Gnozal will be able to work out what the problem with Japbe is then. I code in different languages and so I use UltraEdit to write code and then the IDE of each language to debug/compile.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply