return true;
}
- virtual bool Activate( wxRect WXUNUSED(cell),
+ virtual bool Activate( const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem &WXUNUSED(item),
unsigned int WXUNUSED(col) )
return false;
}
- virtual bool LeftClick( wxPoint cursor, wxRect WXUNUSED(cell),
+ virtual bool LeftClick(const wxPoint& cursor,
+ const wxRect& WXUNUSED(cell),
wxDataViewModel *WXUNUSED(model),
const wxDataViewItem &WXUNUSED(item),
unsigned int WXUNUSED(col) )
MyFrame *frame =
new MyFrame(NULL, "wxDataViewCtrl sample", 40, 40, 1000, 540);
- SetTopWindow(frame);
frame->Show(true);
return true;
wxDefaultSize, style );
m_ctrl[2] = lc;
+ MyListStoreDerivedModel* page2_model = new MyListStoreDerivedModel();
+ lc->AssociateModel(page2_model);
+ page2_model->DecRef();
+
lc->AppendToggleColumn( "Toggle" );
lc->AppendTextColumn( "Text" );
lc->AppendProgressColumn( "Progress" );