U++ framework
Do not panic. Ask here before giving up.

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: Tue Apr 28 21:10:37 GMT+2 2026

Total time taken to generate the page: 0.00765 seconds