[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

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
0
wantime
Asked:
wantime
  • 6
  • 4
1 Solution
 
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
 
Ephraim WangoyaCommented:
Use
Project->Options..

Select Application from the tree view
Click on Load Icon to select your icon
Change-Application-Icon.png
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
jimyXCommented:
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
 
wantimeAuthor Commented:
you are right, jimyX. The problem is on dpr file. thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now