ContextMenu and Tooltip stays unclosed even when the window is deactivated
Hi,
When we show ContextMenu or Tooltip, and we click other window (thus deactivating the current Noesis window), the ContextMenu or Tooltip stays afloat (not closed).
Is there any way to fix this behavior ?
thanks.
When we show ContextMenu or Tooltip, and we click other window (thus deactivating the current Noesis window), the ContextMenu or Tooltip stays afloat (not closed).
Is there any way to fix this behavior ?
thanks.
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: ContextMenu and Tooltip stays unclosed even when the window is deactivated
This is a bug, could you please report it in our bugtracker?
A tricky workaround could be to inject a fake mouse click at (-1,-1) in the View before doing the Deactivate, could you try that?
A tricky workaround could be to inject a fake mouse click at (-1,-1) in the View before doing the Deactivate, could you try that?
Re: ContextMenu and Tooltip stays unclosed even when the window is deactivated
Thanks. I filed the issue here: https://www.noesisengine.com/bugs/view.php?id=1438
Yes, the workaround is working as far as I can tell (I am sending LButtonDown at -1,-1).
But, isn't it dangerous to send fake mouse event, because it may interfere with the real events ?
Yes, the workaround is working as far as I can tell (I am sending LButtonDown at -1,-1).
But, isn't it dangerous to send fake mouse event, because it may interfere with the real events ?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: ContextMenu and Tooltip stays unclosed even when the window is deactivated
It won't do any harm here as you are deactivating the window and all mouse state will be reset, but consider this only as a temporal workaround, the right solution is fixing Noesis code to correctly close the menus and tooltips.But, isn't it dangerous to send fake mouse event, because it may interfere with the real events ?
Who is online
Users browsing this forum: Bing [Bot] and 4 guests