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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user