Title: Message
Jeremy
  I think that the reason your tray icons disappear when you wave your mouse over them is because explorer is failing in its attempt to send the notification messager to the app (i.e. the app is no longer there).
 
  I would suggest that you either swap the CoolTrayIcon component for one that works properly (a later version maybe) of ditch the idea of components that do this job and just use the API call Shell_NotifyIcon.  While not terribly OO, the API call is easy to use, and once you get used to it, you'll find that you have more control of your tray icons than most components can manage.
 
Trevor
----- Original Message -----
Sent: Thursday, November 27, 2003 3:06 PM
Subject: [DUG] Tray Icon

Hi All.
I have a small problem where I am using a tray icon comp. called "CoolTrayIcon" as it has a couple of nice features.
Anyway, I have a maint progrma that runs at a specified time that closed my app. down and compact and repairs my Access Db and backs it up etc.
This all works fin, BUT, when the application closes (this is the one that gets closed by the maint app) it leaves the tray icon in the system tray.
If the program is closed 5 times, there will be 5 icons !
If I then run my mouse over the system try, all but the active icon go away !
 
Do I need to send a windows message to the systray to tell it to refresh or something?
 
Cheers,
 
Jeremy Coulter
 
 
------------------------------------------------------------------------
All email scanned with Nortons Antivirus 2003
------------------------------------------------------------------------
 


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to