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 » Close context menu from within Execute() handler
Close context menu from within Execute() handler [message #25347] Thu, 18 February 2010 00:23 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I have a EditField control inside MenuBar, which is shown with Execute(). WhenEnter virtual function of EditField is overriden so that user may write some custom text in this field and then press Enter. Of course, after that, context menu should be closed.
I tried a number of functions (Close/CloseMenu/Hide/etc.) to close context menu automatically inside WhenEnter, but none of them worked.
Debugging led me to a condition in Ctrl.cpp @ 675:
void Ctrl::Close()
{
	GuiLock __;
	Ctrl *q = GetTopCtrl();
	if(!q->top) return;
	//...

which is never true in this case.

Please help, I meet this issue for the third time and still have no solution for it.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bigger images/icons in menu
Next Topic: Popup menu on button click
Goto Forum:
  


Current Time: Thu Apr 25 13:01:04 CEST 2024

Total time taken to generate the page: 0.02360 seconds