Title: Message
god, how many times does it happen when you send an email off and 2 seconds later you solve the problem...and thats after trying for 15 mins !!   grrrr
I needed to trap the minimize event and restore the form, i.e. application.restore.
 
Jeremy
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Coulter
Sent: Wednesday, 21 January 2004 10:55
To: [EMAIL PROTECTED]
Subject: [DUG] Application in Taskbar

Hi All.
I have an app. that is controlled from the System Tray.
When a form opens up, it puts a reference to the app. on the taskbar (i.e. the icon and app. name etc) just like any other app. that you have running.
BUT, in XP, if you dbl click on the item in the taskbar, it will close the form, or hide it or something as the form disappears and so does the item off the task bar.
The Form "Appears" to still be open or created as doing a FindWindow will return a handle for it.
I noticed that if I dbl click on say Notepad when its in the tskbar, it doesnt close.
 
Is there a way to stop this? My inital thought was to hide the item that gets added to the taskbar by ShowWindow(application.handle SW_HIDE) but the form is then not shown at all.
If I could hide it off the taskbar then that would be good, but really I need to stop it for going away.
 
Anyone know of a solution for this?
 
Cheers,
 
Jeremy Coulter
 
 
------------------------------------------------------------------------
All email scanned with Nortons Antivirus 2003
------------------------------------------------------------------------
 
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to