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: