Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Remove tray icon when killing program (https://www.delphipraxis.net/177126-remove-tray-icon-when-killing-program.html)

WojTec 18. Okt 2013 10:33

Re: Remove tray icon when killing program
 
But in most cases closing window (if there is tray icon) don't closing program, aren't they? I try write something, I'll ask if next problem occur ;)

Der schöne Günther 18. Okt 2013 10:38

AW: Remove tray icon when killing program
 
If the application is going to shut down, it has to take care of removing the tray icon. A well written application should do that. Let's hope for the best.

However, I sometimes have indeed dead tray icons lying around that vanish when you touch them. Looks like a rather common problem :-(
Also, have a look at this post on StackOverflow. It really looks like you can either hope that the application cleans up after itself (if you just let it) or just accept your fate.

DeddyH 18. Okt 2013 10:40

AW: Remove tray icon when killing program
 
I have found an interesting thread concerning the problem (except the tray icon): https://forums.embarcadero.com/threa...threadID=66986

jaenicke 18. Okt 2013 10:46

AW: Remove tray icon when killing program
 
The application has to have a window handle and a message loop. The window does not have to be visible. So the solution, which should work in most if not all cases, would be to send WM_CLOSE to alle window handles found for the application.

WojTec 25. Jan 2014 15:42

Re: Remove tray icon when killing program
 
So, I found solution, but only partial - doesn't work on V+ :(

Delphi-Quellcode:
madKernel.Process().TrayIcons[].Delete


Author seems to be not interested in fix :cry:


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:20 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz