Solved

How to Run in the System Tray

Posted on 1997-04-03
1
149 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

837 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