AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Remove tray icon when killing program

Ein Thema von WojTec · begonnen am 17. Okt 2013 · letzter Beitrag vom 25. Jan 2014
Antwort Antwort
Seite 2 von 2     12
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#11

Re: Remove tray icon when killing program

  Alt 18. Okt 2013, 10:33
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
  Mit Zitat antworten Zitat
Der schöne Günther
Online

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#12

AW: Remove tray icon when killing program

  Alt 18. Okt 2013, 10:38
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.

Geändert von Der schöne Günther (18. Okt 2013 um 10:40 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.536 Beiträge
 
Delphi 11 Alexandria
 
#13

AW: Remove tray icon when killing program

  Alt 18. Okt 2013, 10:40
I have found an interesting thread concerning the problem (except the tray icon): https://forums.embarcadero.com/threa...threadID=66986
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.330 Beiträge
 
Delphi 11 Alexandria
 
#14

AW: Remove tray icon when killing program

  Alt 18. Okt 2013, 10:46
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.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#15

Re: Remove tray icon when killing program

  Alt 25. Jan 2014, 15:42
So, I found solution, but only partial - doesn't work on V+

madKernel.Process().TrayIcons[].Delete

Author seems to be not interested in fix
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:03 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