- // first send "change in progress" event which may be vetoed by user
- wxChoicebookEvent eventIng(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, GetId());
-
- eventIng.SetEventObject(this);
- eventIng.SetSelection(selNew);
- eventIng.SetOldSelection(selOld);
- if ( GetEventHandler()->ProcessEvent(eventIng) && !eventIng.IsAllowed() )
- {
- m_choice->Select(m_selection);
- return;
- }
-
- // change allowed: do change the page and notify the user about it