Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
505
Popup menu won't stay open in MFC app
posted

I have an issue similar to
http://ko.infragistics.com/community/forums/p/4936/267424.aspx
except that DockWithContainer is not helping here.

I believe the problem is caused by the special way that our application is set up: It's WinForms running inside an MFC window. The reason for this set-up is that the app must be an ActiveDocument server, and we've used MFC to create the ActiveDocument skeleton.

This has caused minor issues in the past, like menus and combobox drop-downs not closing when the app loses its focus, but so far we've been able to live with those. But now we have the problem that once our pop-up menu has shown a submenu and the user moves the mouse to another menu item (so that the submenu should go away), the entire popup disappears. This is a major usability issue.

My favorite approach would be to do without the UltraToolbarsManager, but apparently the PopupMenuTool cannot work without it.

The goal is to create a control, derived from UltraDropDownButton, that displays a drop-down menu. To make it self-contained, it needs to have its own UltraToolbarsManager and dynamically create the menu in the DroppingDown event. I have this working nicely in a small test app, but I'm hitting a wall in our real app.

Any ideas on where to look to make this work?

TIA,
Hans