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 ;)
|
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. |
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
|
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.
|
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. |
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