Fix showing MDI child from wxDocManager::ActivateDocument().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Mar 2012 00:29:03 +0000 (00:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Mar 2012 00:29:03 +0000 (00:29 +0000)
commit3285e9a347c8b67774de6110444ed50bd6b8cd21
tree1fd962bffd3a63fceb07a8ca523ff1b0e54bb686
parente7092398891c83b12c84305d8d0206bdbe415fa0
Fix showing MDI child from wxDocManager::ActivateDocument().

This fix has 2 components: first, call Raise() instead of simple SetFocus()
from ActivateDocument() as this corresponds better to what we want to do here.
And second, override Raise() to call Activate() in wxMDIChildFrame to ensure
that it works as expected as raising an MDI child doesn't work otherwise in
most ports (with the exceptions for wxOSX which, on the contrary, needs a
small fix to preserve the existing working Raise() behaviour).

Closes #13946.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/mdi.h
src/common/docview.cpp
src/osx/carbon/mdi.cpp