Re:Free system tray icon
Quote
> Could someone suggest a freeware component to send an app to the System
> Tray? I'm using BCB4 and so far haven't been able to find one. I did manage
As is often the case, there are a few ways of doing it.
1) Use a component. There are a zillion TrayIcon components in the
various libaries on the 'net. Also, the shareware ZieglerCollection at
http://www.zieglersoft.com has one.
2) You can do it yourself. Check this old posting by Harold Howe (who
has a chapter in his must-have reference book "BCB How-To" on it):
Quote
> You hide your app from the main taskbar with this code
> ShowWindow(Application->Handle, SW_HIDE);
> ShowWindow(Handle, SW_HIDE); // Handle is the main form's handle
> You can display an icon in the tray next to the clock by using the
> Shell_NotifyIcon API function. My TTrayIcon control makes this step
> effortless if you want to use it.
> http://www.bcbdev.com/components.htm
> Harold
Or see the example shipped with BCB:
Cbuilder\Examples\Controls\Tray
+===================================================+
| Jonathan Arnold (mailto:jdarn...@buddydog.org) |
| Engineering Manager Roger Wagner Publishing |
| http://people.ne.mediaone.net/jdarnold |
+===================================================+
The one thing that unites all humans, regardless of
age, gender, religion, economic status or ethnic
background, is that, deep down inside, we all believe
that we are above average drivers. Dave Barry