Problem with TrayIcon

Problem with TrayIcon

Postby shark » Fri Feb 15, 2019 3:58 am

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  Expand view  RUN


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  Expand view  RUN

oTray:End()

      oTrayIcon:End()

      oTrayTimer:End()

      oWndTray:End()

 
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Problem with TrayIcon

Postby Enrico Maria Giordano » Fri Feb 15, 2019 9:48 am

Can I see a little PRG sample showing the problem?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Problem with TrayIcon

Postby rhlawek » Sat Feb 16, 2019 1:13 am

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.
User avatar
rhlawek
 
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm

Re: Problem with TrayIcon

Postby shark » Sat Feb 16, 2019 6:39 am

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.
shark
 
Posts: 55
Joined: Thu Mar 13, 2008 2:35 am

Re: Problem with TrayIcon

Postby Uwe.Diemer » Mon Sep 09, 2019 12:40 pm

https://prnt.sc/p3rvx7


Hello ich have the same problem

Any news about it ???


Image
User avatar
Uwe.Diemer
 
Posts: 98
Joined: Mon Aug 09, 2010 11:00 am

Re: Problem with TrayIcon

Postby Uwe.Diemer » Wed Jul 22, 2020 8:05 am

Any News about This ???
User avatar
Uwe.Diemer
 
Posts: 98
Joined: Mon Aug 09, 2010 11:00 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi, Silvio.Falconi and 64 guests