Delphi2010: unable to define Icon in the left corn of application

hi all,

i would like to load Icon from menu->project->option->application->symbol in delphi2010 IDE.

but the whole Button are deactived. any idea?

thanks.

wantime
icon-deactived.jpg
wantimeAsked:
Who is Participating?
 
jimyXConnect With a Mentor Commented:
I do not think it's the Registry.

I suspect you deleted the following line from your Delphi Project ".dpr":

{$R *.res}

If so just add it as per the location shown in a default dpr file:

program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.res}

begin
  Application.Initialize;
  Application.MainFormOnTaskbar := True;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

Open in new window

0
 
jimyXCommented:
For a normal GUI application you can change the application icon from Project - Options. For console mode applications this section is disabled - and thus all console mode application have a default icon.
0
 
jimyXCommented:
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Ephraim WangoyaCommented:
Use
Project->Options..

Select Application from the tree view
Click on Load Icon to select your icon
Change-Application-Icon.png
0
 
wantimeAuthor Commented:
thanks.

the problem is that the button "Load Icon" is deactived in my delphi IDE.
0
 
jimyXCommented:
Are you creating a "VCL Forms Application" or "Console application" ?

That button should be enabled if you are using VCL Forms Application. In Console application that button will be disabled, to be able to change the icon of a console application check the link in my last post 34121667.
0
 
jimyXCommented:
As per the attached pic. which one you have selected to start your application ?

Try a new project by selecting "VCL Forms Application", I think in the Dutch version it is "VCL Forms-Anwendung" then go and check:

menu->project->option->application->symbol

New-item.JPG
0
 
wantimeAuthor Commented:
it is  the VCL Forms Application, the button was activated few days ago. ..
0
 
jimyXCommented:
It's activated already ? What was the problem ?
0
 
wantimeAuthor Commented:
it was activated since i installed delphi, then it turns deactivated. that's why i wrote post here.

i wonder if it is something to do with the registry?



0
 
wantimeAuthor Commented:
you are right, jimyX. The problem is on dpr file. thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.