System Tray Icon Menu won't dismiss 
Author Message
 System Tray Icon Menu won't dismiss

I've been trying various system tray icon controls/solutions that use the
shell_notifyicon API, and have found that the right-click menu is slow to
disappear (and may not disappear at all) when the user clicks outside of the
menu to "dismiss" it (i.e., they don't choose an option off the menu, they
just want to get rid of it).

Other apps in the tray (e.g., McAfee) do not exhibit this problem.

Has anyone encountered this, and if so, any ideas on how to fix it?

Thanks much,



Fri, 16 Aug 2002 03:00:00 GMT  
 System Tray Icon Menu won't dismiss
Hi,

this is only a bug-work-around, but the only thing I can think of:
add a menu 'Cancel', which does exactly nothing. When the user selects it, the
menu dismisses.

Not very nice, but as I said: it works...

    Sascha

Quote:

> I've been trying various system tray icon controls/solutions that use the
> shell_notifyicon API, and have found that the right-click menu is slow to
> disappear (and may not disappear at all) when the user clicks outside of the
> menu to "dismiss" it (i.e., they don't choose an option off the menu, they
> just want to get rid of it).

> Other apps in the tray (e.g., McAfee) do not exhibit this problem.

> Has anyone encountered this, and if so, any ideas on how to fix it?

> Thanks much,




Sat, 17 Aug 2002 03:00:00 GMT  
 System Tray Icon Menu won't dismiss

Quote:

> I've been trying various system tray icon controls/solutions that use the
> shell_notifyicon API, and have found that the right-click menu is slow to
> disappear (and may not disappear at all) when the user clicks outside of
the
> menu to "dismiss" it (i.e., they don't choose an option off the menu, they
> just want to get rid of it).

If I recall correctly, this is what you have to do to work around this
issue:

    SetForegroundWindow Me.hWnd
    PopupMenu mnuWhatever
    SendMessage Me.hWnd, WM_NULL, 0, 0

Hope this helps.

--

http://www.scottandmichelle.net/scott/code/
Sample code and utilities.



Sat, 17 Aug 2002 03:00:00 GMT  
 System Tray Icon Menu won't dismiss
I have used the sample code of the msdn in Visual Basic to create
systray.ocx, I put this on a form and assign a icon to it, this works fine
here.

I would like to now how to create an animated one, does anybody can help me
with this?

Max



Quote:
> I've been trying various system tray icon controls/solutions that use the
> shell_notifyicon API, and have found that the right-click menu is slow to
> disappear (and may not disappear at all) when the user clicks outside of
the
> menu to "dismiss" it (i.e., they don't choose an option off the menu, they
> just want to get rid of it).

> Other apps in the tray (e.g., McAfee) do not exhibit this problem.

> Has anyone encountered this, and if so, any ideas on how to fix it?

> Thanks much,




Sun, 18 Aug 2002 03:00:00 GMT  
 System Tray Icon Menu won't dismiss
Set the menu yourself by using the CreateMenu Api.  Set the menu to the
system trays main window.  When the user right clicks on your icon, call
the TrackPopUpMenuEx API (or something like that) to wait for the
response.  

This always works.

Quote:

> I've been trying various system tray icon controls/solutions that use the
> shell_notifyicon API, and have found that the right-click menu is slow to
> disappear (and may not disappear at all) when the user clicks outside of the
> menu to "dismiss" it (i.e., they don't choose an option off the menu, they
> just want to get rid of it).

> Other apps in the tray (e.g., McAfee) do not exhibit this problem.

> Has anyone encountered this, and if so, any ideas on how to fix it?

> Thanks much,




Tue, 20 Aug 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. System Tray Menu Persists/Won't go away

2. pop-up menu won't close in system tray : Mattias Sj?gren

3. pop-up menu won't close in system tray

4. Win NT services, system tray icons

5. TaskIcon.OCX for show icon and popup menu in system tray

6. System Tray icon with popup menus

7. Popup menu on system Tray Icon

8. System Tray menu with Icons ?

9. Calling OLE Automation servers from Tray Icon won't work

10. System tray icon doesn't get updated

11. sys tray popup menu won't go

12. CoolHide - Help you hide/minimize window to Tray and hide icons from the system tray

 

 
Powered by phpBB® Forum Software