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?)
Menu opens, but does not close (Bug?) [message #59882] Thu, 18 May 2023 08:17 Go to previous message
peterh is currently offline  peterh
Messages: 108
Registered: November 2018
Location: Germany
Experienced Member
Hi,

see the attached image.
Sometimes the menu in applications does not close.
It happens reliably from time to time with the "Addressbook" example and the "Menu" example.

However it seems to happen randomly and preferably directly after the Application was startet.

So it could be uninitialized memory somewhere in the GUI framework. Also it could be a race condition.
(These are just my uneducated guesses. I do not know what the reason is)

I found no way to reproduce it every time, the only way is to try it 10 to 20 times.

Run the "Menu" tutorial application. Click the menu, so it opens and move the mause pointer directly to the title bar of the window and move the window.
Try this 10 to 20 times. Then it happens. From time to time the menu does not close and stays on top, while the main window is moved.
This is the most reliable way to reproduce it, but it happens from time to time, when playing around with the application under unknown circumstances.
The menu does not close until a menu item is selected or another windows app is clicked.
(To make a screenshot, I pressed Ctrl-Print, to capture the whole screen)

index.php?t=getfile&id=6803&private=0

I am on Windows 11, 64 Bit. My Upp version is 16834 nightly build.
Compiler is 64 bit CLang.

  • Attachment: Menu.png
    (Size: 12.62KB, Downloaded 357 times)

[Updated on: Thu, 18 May 2023 09:34]

Report message to a moderator

 
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 May 10 01:14:11 CEST 2025

Total time taken to generate the page: 0.01262 seconds