#I want to handle click events on the taskbar icon.

8 messages · Page 1 of 1 (latest)

native granite
#

In my application whenever user clicks on the close button I'm hiding the window by using win.hide() method.
But whenever user clicks on the taskbar icon then the hidden window is not getting show.

So I want to handle the event which will trigger while clicking on the taskbar icon. Here I found one event 'activate' but it is only for macOs. I want above mention feature in all the OS so how can I do that ?

native granite
#

@verbal rose can you please help me ?

verbal rose
#

Hmm, I don't think so, never tried that

#

Have you configured the Tray?

native granite
#

yes I've configured the tray and on click of the tray icon it is working fine

#

but I want to add same behaviour also on taskbar icon

verbal rose
#

Could you show me what you call the taskbar icon please?

native granite
#

I was talking about this kind of taskbar icon.
My bad now I realise that whenever we hide the app it is removing taskbar icon also and only in macOs it is not getting remove so it will handle by the "activate" event.