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 » [Bug] Check box + sub-menu = problem
[Bug] Check box + sub-menu = problem [message #40204] Wed, 03 July 2013 06:03 Go to next message
Novo is currently offline  Novo
Messages: 893
Registered: December 2006
Experienced Contributor
How to reproduce:
1) run reference/DockingExample1
2) Auto-hide any of docking controls by either using docking bar menu or by using auto-hide button.
3) Try to disable auto-hiding by using docking bar menu (try to uncheck checking box in menu item).

The same problem can be reproduced by trying to undock docked window using docking bar menu.

Check box doesn't work if there is a sub-menu.
Or it is supposed to be this way and I'm missing something.


Regards,
Novo
Re: [Bug] Check box + sub-menu = problem [message #40242 is a reply to message #40204] Tue, 09 July 2013 20:46 Go to previous message
Novo is currently offline  Novo
Messages: 893
Registered: December 2006
Experienced Contributor
A small test case is attached.

Actually, the problem is that you can have both a submenu and a checkbox, but you cannot control checkbox in this case because there is only one callback, and it can be called even if you do not click on menu (just hold your mouse pointer over this menu item, click somewhere outside of menu, and open "File" menu again).

IMHO, because there is no way to control state of checkbox in this case, it should be displayed as disabled.

Just my 2 cents.


Regards,
Novo
Previous Topic: [Minor bug & fix] Wrong color of MenuBar item when mouse cursor is on it (Gtk backend)
Next Topic: [Minor fix - Linux] Insufficient value for the variable leftgap in MenuBar CH_STYLE.
Goto Forum:
  


Current Time: Fri Dec 13 22:49:41 CET 2019

Total time taken to generate the page: 0.00800 seconds