[C++] Hide context menu after focus inside
Posted: 21 Aug 2017, 12:46
I create custom context menu on right mouse button.
When context menu shows I can close it by clicking outside of the context menu.
If I click on active elements (such as slider, buttons, checkitems) inside custom context menu I can't close it by clicking outside. How can I fix this behaviour?
I temporarily add OnMouseLeave event with next code:
but it crashed on Win7 in xaml view MouseMove().
When context menu shows I can close it by clicking outside of the context menu.
If I click on active elements (such as slider, buttons, checkitems) inside custom context menu I can't close it by clicking outside. How can I fix this behaviour?
I temporarily add OnMouseLeave event with next code:
Code: Select all
menu->SetIsOpen(false);