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 » Disabled menu item not disabled [FIXED]
Disabled menu item not disabled [FIXED] [message #680] Wed, 25 January 2006 11:39 Go to next message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
If you open the "Menu" example you can see the following issue:
When "Numbers" is supposed to be disabled and the mouse come over this item, the sub-menu will pop-up.

This can be solved in MenuBar.cpp

void SubMenuItem::MouseEnter(Point, dword)
{
SetFocus();
Refresh();
- if(!menu.IsOpen())
+ if(!menu.IsOpen() && isenabled)
SetTimeCallback(400, THISBACK(Pull), TIMEID_PULL);
}

Victor

[Updated on: Sun, 30 April 2006 16:36] by Moderator

Report message to a moderator

Re: Disabled menu item not disabled [message #681 is a reply to message #680] Wed, 25 January 2006 12:09 Go to previous message
mirek is currently offline  mirek
Messages: 14105
Registered: November 2005
Ultimate Member
Indeed! Thanks!

Mirek
Previous Topic: Menu callbacks
Next Topic: Menubar [BUGS][FIXED]+ deactivate problem[NOT FIXED?]
Goto Forum:
  


Current Time: Fri Nov 01 00:15:08 CET 2024

Total time taken to generate the page: 0.02631 seconds