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://es.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

Parents
  • 29105
    Suggested Answer
    Offline posted

    Hello Salvis,

    Thank you for reporting this to us. Yes, the UltraToolbarsManager is not working properly because it's being used outside of Windows Forms environment that it was designed for. Please note that I am not all too familiar with MFC but to help resolve the issue I came across another thread of ours that may interest you. Please review the following forum post:  <http://es.infragistics.com/community/forums/p/3349/25475.aspx#25475>

    This thread discusses a nearly identical situation similar to the one you are currently facing where overrding some protected members on the toolbars manager can help fix the issue you having in an MFC environment.

    Please let me know if this helps.

Reply Children