X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d6fcbcc7088e9c104b3dc5b4704a07f728d55ae..7f8bd9fc5ff34562a7e5c411d95cef99582f7aab:/src/generic/listbkg.cpp?ds=sidebyside diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 9f725353c0..a9498bdf3c 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -274,12 +274,17 @@ int wxListbook::GetSelection() const return m_selection; } -int wxListbook::DoSetSelection(size_t n, int flags) +wxBookCtrlBaseEvent* wxListbook::CreatePageChangingEvent() const { - wxListbookEvent event(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, m_windowId); - return wxBookCtrlBase::DoSetSelection(n, flags, event); + return new wxListbookEvent(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, m_windowId); } +void wxListbook::MakeChangedEvent(wxBookCtrlBaseEvent &event) +{ + event.SetEventType(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED); +} + + // ---------------------------------------------------------------------------- // adding/removing the pages // ----------------------------------------------------------------------------