Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi Project 'Load Icon' button deactivated

Status
Not open for further replies.

DaZZleD

Programmer
Oct 21, 2003
886
US
When I try to add an icon to my project (project->options->application) I have the 'Load Icon' button deactivated... has anyone got any idea on how to fix this or what's causing it?

thanks.
 
Console application has no icon available.
Normal application should have ability to load icon..






//Nordlund
 
Which version of Delphi is it?

Does this happen with all your applications ?

Does this happen with all new applications ?



Andrew
Hampshire, UK
 
it's Delphi 5. It used to be okay a while back (i can't remember exactly when) while I was still programming this application, then the delphi default icon for projects became the same as the icon that applications that stop responding have (that empty window-like icon). I didn't worry too much back then because I often saw windows screw up icons. But now, when I tried adding the icon to the final version of the app, i can't.

Other older Delphi applications seem to work ok... Also do the new ones...
 
I would guess that the .res file for the project has got corrupted.

You should be able to delete this and then restart Delphi, load your project and then select an icon.

But I would suggest renaming the .res file to be on the safe side so that you can recover.

Andrew
Hampshire, UK
 
renaming the file does not make delphi recreate it... and does not allow me to change the icon, instead it also disables more options (like version and so...)
 
Does it even eisable the loadbutton when creating a new, empty project?

If not, use an empty project and add your units into that proj instead...


//Nordlund
 
Hmm, Delphi 7 seems to recreate the .res file for the project if it is renamed. I don't use Delphi 5 any more.

It might be worth testing if renaming the .dsk file for the project would have an effect. But I would be surprised if the icon information was stored there.

Andrew
Hampshire, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top