class ListboxWidgetsPage : public WidgetsPage
{
public:
- ListboxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ ListboxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual wxControl *GetWidget() const { return m_lbox; }
+ virtual void RecreateWidget() { CreateLbox(); }
protected:
// event handlers
IMPLEMENT_WIDGETS_PAGE(ListboxWidgetsPage, _T("Listbox"));
-ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrl *book,
+ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
void ListboxWidgetsPage::CreateLbox()
{
- int flags = 0;
+ int flags = ms_defaultFlags;
switch ( m_radioSelMode->GetSelection() )
{
default:
void ListboxWidgetsPage::OnListboxDClick(wxCommandEvent& event)
{
- wxLogMessage( _T("Listbox item %ld double clicked"), event.GetInt() );
+ wxLogMessage( _T("Listbox item %d double clicked"), event.GetInt() );
}
void ListboxWidgetsPage::OnCheckListbox(wxCommandEvent& event)
{
- wxLogMessage( _T("Listbox item %ld toggled"), event.GetInt() );
+ wxLogMessage( _T("Listbox item %d toggled"), event.GetInt() );
}
void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))