We are developing a mixed c++ application were we host a usercontrol within an MFC CWinFormsView. This control contains UltraToolbars with PopupMenuTool dropdown menus.
We are experiencing problems with the dropdown menus remaining sticky on the screen when the mouse clicks outside the menu or the form is moved or closed. Furthermore, the Escape doesn't work for closing the menus or any other shortcut key assigned to a menu entry. We also have a WinNavigationBar that has the same problems when a dropdown for a location is opened.
Could you please advise?
Carlo
Mike and Mark,
I am running Symantec Anti-Virus 10 myself, and had hoped this would be the problem. While the cause wouldn't be immediately explainable, it would point to a combination of things that cause this problem. However, I uninstalled Symantec and it had no effect. The alt-key navigation is still not working. For me, uninstalling Symantec didn't help.
One other item of note is that every time I hold down alt and click a key for a mnemonic, I get the Windows error sound. The software is acting as if I am clicking a key that is not assigned.
I am at a loss as to what I should try next. If anyone has any suggestions, I am open to try anything to diagnose this problem.
Keith
Thats very interesting. I'm not running Symantec on my machine, so I can't test this, but if you give this information to the support group, they should be able to obtain a copy and test it. It could be that Symantec installs a keyboard hook so you can perform some operation with their program even when it is not active on screen. This could be interfering with the Alt key processing in the toolbars manager.
Mike,
I tested as you have mentioned and it is in fact in full trust.
The error happens irregular and only on certain computers.
I may have stumbled upon one thing today that might shed some light. We use Symantec Anti-Virus Corporate Edition 10 and if I uninstalled it on a computer that was exhibiting the problem, I no longer had the problem. If i reinstalled Symantec and restarted the app. The keys stopped working again.
Anyone else having this problem that uses Symantec?
Mark Monica
You may be correct when you say that the sticky popup menu and alt key problems are related. I, too, was having the sticky popup menu problem and added the Infragistics.Win.Utilities.ForceNativeMessageFilter() line of code. This fixed the sticky menu problem. However, I cannot determine anything in my code that would be causing the alt key functionality to not work. As I have said in a previous post, the design-time assigned shortcut keys work, but the mnemonic-driven menus will not work.
I have removed all other controls from my form, thus removing the possibility that another control might be stealing focus and absorbing my alt key message.
As I mentioned before in my previous posts, the sticky popup menu and shortcut keys (alt key) problems are believed to be related - if anyone of these two happen, the other problem also surfaces. I have contact Infragistics support several times and they said they could not reproduce the problems (of course, they use very, very small programs and it is impractical to send them our app). I also sent them screen shot to proof that there is such a problem without any resolution.