[DUG] TTrayIcon

John Bird johnkbird at paradise.net.nz
Thu Sep 14 12:30:29 NZST 2006


I have a program (the Analogue clock widget) that would be useful to have in
the system tray mainly so that it doesn't minimise when a user hits the Show
Desktop shortcut to minimise all windows.  (This is an icon in the quick
launch toolbar on XP)
 
I did some experimentation with TTrayIcon in D2006 and it doesn't work quite
as I expected - it does nicely create an icon in the system tray, but also
still on the task bar, and minimise all programs mentioned above still
minimises it.  Also there is no right click menu supplied with the tray icon
by default- so I presume further coding is still needed to add this.
 
I could either add further code to do this - any suggestions?
 
-or-
 
I could leave it instead with a normal task bar icon and use the
Tapplication.onminimise event (TapplicationEvents component) to just
maximise it again (add a line saying application.restore).  *However* this
event is fired when I click the minimise icon for the individual program,
but not when minimise all is clicked.....
Any suggestions?
 

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3480 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060914/118f373e/winmail.bin


More information about the Delphi mailing list