Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear Unselected SysTray Menu
Message
From
22/11/2002 12:36:46
 
 
To
All
General information
Forum:
Visual Basic
Category:
Windows API functions
Title:
Clear Unselected SysTray Menu
Miscellaneous
Thread ID:
00725872
Message ID:
00725872
Views:
35
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
Reply
Map
View

Click here to load this message in the networking platform