better child focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4319,7 +4319,8 @@ void wxAuiManager::OnChildFocus(wxChildFocusEvent& event)
|
|||||||
// active panes are allowed by the owner)
|
// active panes are allowed by the owner)
|
||||||
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
|
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
|
||||||
{
|
{
|
||||||
if (GetPane(event.GetWindow()).IsOk())
|
wxAuiPaneInfo& pane = GetPane(event.GetWindow());
|
||||||
|
if (pane.IsOk() && (pane.state & wxAuiPaneInfo::optionActive) == 0)
|
||||||
{
|
{
|
||||||
SetActivePane(m_panes, event.GetWindow());
|
SetActivePane(m_panes, event.GetWindow());
|
||||||
m_frame->Refresh();
|
m_frame->Refresh();
|
||||||
|
Reference in New Issue
Block a user