Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear Unselected SysTray Menu
Message
De
22/11/2002 12:36:46
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
Clear Unselected SysTray Menu
Divers
Thread ID:
00725872
Message ID:
00725872
Vues:
36
How do you clear a System Tray menu w/o making a selection?

When using the Shell_NotifyIcon API call along with the appropriate NOTIFYICONDATA Types I call a menu from a form using the Popupmenu command and every thing works fine except for one thing. If you click on the icon in the system tray which elicits a menu appearance and you change your mind and don't make a selection, you should be able to click anywhere outside of that menu and it would then disappear. But for me it doesn't. Instead it stays there until I actually make a selection from the menu or hold down the mouse button upon making the selection and drag off the menu then releasing. Another way to release that menu is to click on an unrelated already visible form that is a part of the application in question.

Also, being somewhat related, how do you make menu shortcuts available in the System Tray? The shortcut is shown where assigned in the menu, but does not work when attempting to invoke via the keyboard.

Any recommendations or suggestions would be greatly appreciated!

Thanks In Advance,
Craig
HeartWare@sbcglobal.net
Répondre
Fil
Voir

Click here to load this message in the networking platform