There is a ShowMainForm (or similar) property on
Application. If you set that to false, it won't show the main form and
thus wont show up in the task bar.
Regards
Sean
-----------------------------
Sean
Cross
Systems Development
Catalyst Risk Management
PO Box
230
Napier
Phone: 06 834 0362
Mobile: 021 270
3466
Email: [EMAIL PROTECTED]
http://www.crm.co.nz/
Offices in
Auckland, Napier, Wellington & Christchurch
Disclaimer:
"The
information contained in this document is confidential to the addressee(s) and
may be legally privileged. Any view or opinions expressed are those of the
author and may not be those of CRM. No guarantee or representation is made that
this communication is free of errors, viruses or interference. If you have
received this e-mail message in error please delete it and notify me. Thank
you."
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Bird
Sent: Thursday, 14 September 2006 12:30 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] TTrayIconI 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
_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
