Delphi Program Icons

Posted on 2004-11-17
Medium Priority
Last Modified: 2010-04-05
I have seen many similar questions asked on here before, but not the answer i was looking for. Upon compiling my delphi applications, the default program icon to represent my application is set as the delphi 7 icon (as this is what im using). This has lead me to several questions i wanted answered...
Is there a way to edit or somehow change the program icon given to my applications, upon compiling it?
IF the ONLY way to change the program icon is after it has been compiled, and only if the exe is not running at the time of changing the icon, if i were to programatically change the icon and distribute my application, would the new icon be visible to anyone i send the application to....or would they have to manually change the icon on their computer too?
Perhaps theres an option in delphi to somehow set the program icon, before i compile it? (rather like the fact that you can change the icon that appears on the title bar of your application)

Any help is kindly appreciated!
Question by:Greenandroid
LVL 14

Accepted Solution

Pierre Cornelius earned 1440 total points
ID: 12607358
There is. Click on Project, Options (or Shift + Ctrl + F11).
Select the applications tab.
Click on load icon and select the icon you want.

Expert Comment

ID: 12608772
Expanding on PierreC,

If you want an icon for different forms then change the form icon property, the icon will be included in the exe so you don't need to carry the icon along with the exe.



Expert Comment

ID: 12612026
I'm not sure what you mean by "default program icon".  Do you mean "the icon that appears in Program Manager/Windows Explorer for the executable file" or "the icon that appears at the top of any dialog boxes shown" or "the icon that appears on the taskbar when your program is running" or "the icon that appears at the top left of the main form"?

The first three are all set by the Project options as PierreC described.  Also the second and third can be changed programmatically when the program is running using the Application.Icon property (see help).  The final one (as Hypoviax suggested) can be set on the designer by bringing up the properties of the form and changing its icon and also can be set at runtime programmatically by using MainForm.Icon (or whatever you've called the main form).

Hope this helps.


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

864 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