From: Václav Slavík Date: Sun, 7 Oct 2001 22:58:34 +0000 (+0000) Subject: more active frame stuff X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ead60ec54b85c272711ae917b6a086741699567e?ds=inline more active frame stuff git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 1360b65450..a76020c4ec 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -703,6 +703,17 @@ bool wxWindowMGL::Show(bool show) return FALSE; MGL_wmShowWindow(m_wnd, show); + + if (!show && gs_activeFrame == this) + { + // activate next frame in Z-order: + if ( m_wnd->prev ) + { + wxWindowMGL *win = (wxWindowMGL*)m_wnd->prev->userData; + win->SetFocus(); + } + } + return TRUE; }