IMPLEMENT_DYNAMIC_CLASS(wxListbook, wxBookCtrlBase)
IMPLEMENT_DYNAMIC_CLASS(wxListbookEvent, wxNotifyEvent)
-#if !WXWIN_COMPATIBILITY_EVENT_TYPES
const wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = wxNewEventType();
const wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = wxNewEventType();
-#endif
BEGIN_EVENT_TABLE(wxListbook, wxBookCtrlBase)
EVT_SIZE(wxListbook::OnSize)
if ( selNew != -1 )
SetSelection(selNew);
- GetListView()->Arrange();
-
- if (GetPageCount() == 1)
- {
- wxSizeEvent sz(GetSize(), GetId());
- ProcessEvent(sz);
- }
+ wxSizeEvent sz(GetSize(), GetId());
+ GetEventHandler()->ProcessEvent(sz);
+
return true;
}
if (GetPageCount() == 0)
{
wxSizeEvent sz(GetSize(), GetId());
- ProcessEvent(sz);
+ GetEventHandler()->ProcessEvent(sz);
}
}
m_selection = -1;
wxSizeEvent sz(GetSize(), GetId());
- ProcessEvent(sz);
+ GetEventHandler()->ProcessEvent(sz);
return true;
}