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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tray Icon

Status
Not open for further replies.

ug505

Programmer
Jan 2, 2010
52
US
Hello,

I am building a program that when minimized will "hide" and run in the background and have a the icon displayed in the tray that when double clicked, unhides the program. The problem is, I don't know where to even start since I'm sort of new to delphi. Can anyone help?
 
If you are using a newer version of Delphi, there will be a control for this purpose and you should use that.

However, if you are not using a Delphi with this control included, there is one that I did once upon a time. Source and examples are in a link on that FAQ. It is coded as a component, so all that is needed is installation.

faq102-7231

I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
 
sorry forgot to add, I'm using Delphi 7
 
Could not install, Delphi 7 gave me the following error:

Code:
Build
  [Error] WARNING. Duplicate resource(s):
  [Error]   Type  2 (BITMAP), ID TSYSTRAYICON:
  [Error]     File C:\Documents and Settings\GARRETT\My Documents\SysTray Component\systray_comp.dcr resource kept; file SYSTRAY_comp.DCR resource discarded.
 
I don't know precisely how to solve this, but I will say I did this component in Delphi 3, which will probably mean you will need to recompile it for Delphi 7 before you try to install it into the IDE.

I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
 
I don't know how to do that. Is there an alternative way to make a tray icon?
 
Code:
Is there an alternative way to make a tray icon?

Look into the source of the component and see how to do it and then code it yourself... I'm sure though that someone who has seen Delphi 7 could direct you on how to recompile & install it ...

I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy
 
Have you searched the component archives on Torrys and other Delphi resource sites?

Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top