Solved

How to Run in the System Tray

Posted on 1997-04-03
1
139 Views
Last Modified: 2010-04-06
    How do I have my program icon show up in the system tray beside the clock and the little speaker?  I would like to run a service-type background process that does not appear on the taskbar in the same way interbase does.  When that icon is in the system tray, how do I know when it is clicked/ right clicked on?  Is it the same as if the icon were in the taskbar?  Thanks in advance for any and all help.
Roo
0
Comment
Question by:Roo
1 Comment
 
LVL 3

Accepted Solution

by:
sperling earned 50 total points
ID: 1335123
http://www.infonex.com/~dacroyle/csd/

Click on systray. This is the source for a simple TSysTrayIcon icon I posted to usenet a while ago. It could be used as is, or it could serve as a simple explanation on how to use the SysTray-related functions.

To hide your app from the task-list and the taskbar, put the following line in your project source, right after Application.Initialize

ShowWindow(Application.Handle, SW_HIDE);


Regards,

Erik.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now