made wxListbook events more consistent with wxNotebook ones (patch 1001271)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-09-16 22:14:34 +00:00
parent 627b2b2a0d
commit 33ebfc3b9b
3 changed files with 45 additions and 37 deletions

View File

@@ -506,7 +506,7 @@ void MyFrame::OnNotebook(wxNotebookEvent& event)
if (eventType == wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)
{
str = wxT("Notebook changed");
str = wxT("Changed");
}
else if (eventType == wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)
{
@@ -528,13 +528,14 @@ void MyFrame::OnNotebook(wxNotebookEvent& event)
}
str = wxT("Notebook changing");
str = wxT("Changing");
}
static int s_numNotebookEvents = 0;
wxLogMessage(wxT("Notebook event #%d: %s (%d)"),
s_numNotebookEvents++, str.c_str(), eventType);
wxLogMessage(wxT("Notebook event #%d: %s (%d) Sel %d, OldSel %d"),
s_numNotebookEvents++, str.c_str(), eventType,
event.GetSelection(), event.GetOldSelection());
#if wxUSE_LOG
m_text->SetInsertionPointEnd();