Lots of things to make menus and submenus work.
Also added wxPopTransientWindow::CanDismiss() which will be needed for pop-up menus, although that actually still has to be done... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -647,23 +647,32 @@ void wxApp::ProcessXEvent(WXEvent* _event)
|
||||
tlw = tlw->GetParent();
|
||||
if (tlw && !tlw->IsEnabled())
|
||||
return;
|
||||
|
||||
|
||||
if (event->type == ButtonPress)
|
||||
{
|
||||
if ((win != wxWindow::FindFocus()) && win->AcceptsFocus())
|
||||
{
|
||||
// This might actually be done in wxWindow::SetFocus()
|
||||
// and not here.
|
||||
// and not here. TODO.
|
||||
g_prevFocus = wxWindow::FindFocus();
|
||||
g_nextFocus = win;
|
||||
|
||||
win->SetFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if !wxUSE_NANOX
|
||||
if (event->type == LeaveNotify || event->type == EnterNotify)
|
||||
{
|
||||
// Throw out NotifyGrab and NotifyUngrab
|
||||
if (event->xcrossing.mode != NotifyNormal)
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
wxMouseEvent wxevent;
|
||||
wxTranslateMouseEvent(wxevent, win, window, event);
|
||||
win->GetEventHandler()->ProcessEvent( wxevent );
|
||||
|
||||
return;
|
||||
}
|
||||
case FocusIn:
|
||||
|
Reference in New Issue
Block a user