Solved

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

Posted on 2010-11-12
11
410 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:wantime
  • 6
  • 4
11 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 34121628
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
 
LVL 24

Expert Comment

by:jimyX
ID: 34121667
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 34131917
Use
Project->Options..

Select Application from the tree view
Click on Load Icon to select your icon
Change-Application-Icon.png
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:wantime
ID: 34154954
thanks.

the problem is that the button "Load Icon" is deactived in my delphi IDE.
0
 
LVL 24

Expert Comment

by:jimyX
ID: 34155080
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
 
LVL 24

Expert Comment

by:jimyX
ID: 34155185
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
 

Author Comment

by:wantime
ID: 34155679
it is  the VCL Forms Application, the button was activated few days ago. ..
0
 
LVL 24

Expert Comment

by:jimyX
ID: 34155869
It's activated already ? What was the problem ?
0
 

Author Comment

by:wantime
ID: 34171467
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
 
LVL 24

Accepted Solution

by:
jimyX earned 500 total points
ID: 34171970
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
 

Author Comment

by:wantime
ID: 34257336
you are right, jimyX. The problem is on dpr file. thanks.
0

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question