Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » Menu opens, but does not close (Bug?)
Re: Menu opens, but does not close (Bug?) [message #59886 is a reply to message #59884] Thu, 18 May 2023 17:04 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 227
Registered: June 2011
Experienced Member
peterh wrote on Thu, 18 May 2023 14:41
Seems to happen more frequently after I used Alt-Tab.
When the menu is detached in this way, it is still functional, as if it where running in another thread.


I seem to vaguely remember having a similar problem with my own custom popup ctrl and I couldn't find a way to get it to receive events to close itself when the parent loses focus because it gains focus when created, automatically causing the parent to lose focus; so you end up in this weird catch 22 situation where you want to close the popup when the parent window loses focus to something other than the popup window itself.

Then there's the issue of doing it reliably in a cross-platform way. It's probably going to take someone who knows the windowing system internals better than I do to fix it and I'd like to hear after they fix it how exactly they did it Very Happy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accelerators stop after popup menu due to focus
Next Topic: Toolbar(BarCtrl) bug
Goto Forum:
  


Current Time: Sat Sep 06 09:25:08 CEST 2025

Total time taken to generate the page: 0.06893 seconds