Page 1 of 1

Problem with TrayIcon

Posted: Fri Feb 15, 2019 3:58 am
by shark
When exit program loaded in Tray the icon does not disappear.
Program quit but, the icon on Tray, only disappear when I mouse over.

can anyone give me a hint of what to do to remove the Tray icon when I close the program?

I create the icon in Tray da with the class TTrayicon with the following code:

Code: Select all


oTray := TTrayIcon():New( oWndTray, oTrayIcon, "Sistema Gerenciador" )

oTray:bLButtonUp  := { | nRow, nCol | TaskMenu( nRow, nCol - 5 ) }
oTray:bRButtonUp  := { | nRow, nCol | TaskMenu( nRow, nCol - 5 ) }

oTray:oNotifyIcon := oTrayIcon
 
On the quit program execute:

Code: Select all

oTray:End()

      oTrayIcon:End()

      oTrayTimer:End()

      oWndTray:End()

 

Re: Problem with TrayIcon

Posted: Fri Feb 15, 2019 9:48 am
by Enrico Maria Giordano
Can I see a little PRG sample showing the problem?

EMG

Re: Problem with TrayIcon

Posted: Sat Feb 16, 2019 1:13 am
by rhlawek
I see this behavior all the time with Windows 10, things like mail showing an icon for new mail, but then not clearing after reading without mousing over the icon. And also left behind in the same way when closing an application, close the app and the icon stays visible until a mouse over. MalwareBytes for example behaves this way. Not at all unique to a fivewin app but it could still be common to whatever is being done, or not done, when closing apps.

Re: Problem with TrayIcon

Posted: Sat Feb 16, 2019 6:39 am
by shark
The problem only occurs when closed in tray through another executable with command:

PostMessage (hCtrl, WM_CLOSE, 2)

When exit program normaly, the icon disappears correctly.

Re: Problem with TrayIcon

Posted: Mon Sep 09, 2019 12:40 pm
by Uwe.Diemer
https://prnt.sc/p3rvx7


Hello ich have the same problem

Any news about it ???


Image

Re: Problem with TrayIcon

Posted: Wed Jul 22, 2020 8:05 am
by Uwe.Diemer
Any News about This ???