git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72380
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pPage->SetSize(rect, wxSIZE_FORCE_EVENT);
}
pPage->SetSize(rect, wxSIZE_FORCE_EVENT);
}
+#if 0 // deactivate r65078 for the moment
// If the selected page is hidden at this point, the notebook
// has become visible for the first time after creation, and
// we postponed showing the page in ChangePage().
// If the selected page is hidden at this point, the notebook
// has become visible for the first time after creation, and
// we postponed showing the page in ChangePage().
// Processing continues to next OnSize
event.Skip();
// Processing continues to next OnSize
event.Skip();
if ( nSel != wxNOT_FOUND )
{
wxNotebookPage *pPage = m_pages[nSel];
if ( nSel != wxNOT_FOUND )
{
wxNotebookPage *pPage = m_pages[nSel];
+#if 0 // deactivate r65078 for the moment
if ( IsShownOnScreen() )
{
pPage->Show( true );
if ( IsShownOnScreen() )
{
pPage->Show( true );
// We Show() the selected page in our OnSize handler,
// unless it already is shown.
}
// We Show() the selected page in our OnSize handler,
// unless it already is shown.
}
+#else
+ pPage->Show( true );
+ pPage->SetFocus();
+#endif