SetActivePane() calls SetFocus() (through wxAuiTabContainer::SetActivePage()) on the window to activate, triggering wxAuiManager::OnChildFocus() which calls anew SetActivePane() on the same pane, whereas the previous operation is not completed.
To avoid that, the flag wxAuiPaneInfo::optionActive should be set to the pane being activated, before setting the focus on its window in wxAuiTabContainer::SetActivePage().
SetActivePane()
callsSetFocus()
(throughwxAuiTabContainer::SetActivePage()
) on the window to activate, triggeringwxAuiManager::OnChildFocus()
which calls anewSetActivePane()
on the same pane, whereas the previous operation is not completed.To avoid that, the flag
wxAuiPaneInfo::optionActive
should be set to the pane being activated, before setting the focus on its window inwxAuiTabContainer::SetActivePage()
.Patch coming soon.