-
- realesmedia
- Posts: 85
- Joined:
[C++] Hide context menu after focus inside
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);
-
-
sfernandez
Site Admin
- Posts: 3222
- Joined:
Re: [C++] Hide context menu after focus inside
I was able to reproduce this bug, could you please report it in the bugtracker?
Thanks for reporting.
As a workaround try calling the following:
Let me know if it works correctly for you.
Thanks for reporting.
As a workaround try calling the following:
Code: Select all
menu->GetMouse()->Capture(menu, CaptureMode_SubTree)
-
- realesmedia
- Posts: 85
- Joined:
Re: [C++] Hide context menu after focus inside
Issue #1138 was created.could you please report it in the bugtracker?
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests