fix for discrepancies between wxNotebookEvent and wxNotebook GetSelection() results
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -869,12 +869,16 @@ void MyPanel::OnPageChanging( wxNotebookEvent &event )
|
||||
}
|
||||
}
|
||||
|
||||
*m_text << "Notebook selection is being changed from " << selOld << "\n";
|
||||
*m_text << "Notebook selection is being changed from " << selOld
|
||||
<< " to " << event.GetSelection()
|
||||
<< " (current page from notebook is "
|
||||
<< m_notebook->GetSelection() << ")\n";
|
||||
}
|
||||
|
||||
void MyPanel::OnPageChanged( wxNotebookEvent &event )
|
||||
{
|
||||
*m_text << "Notebook selection is " << event.GetSelection() << "\n";
|
||||
*m_text << "Notebook selection is now " << event.GetSelection()
|
||||
<< " (from notebook: " << m_notebook->GetSelection() << ")\n";
|
||||
}
|
||||
|
||||
void MyPanel::OnTestButton(wxCommandEvent& event)
|
||||
|
Reference in New Issue
Block a user