]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxDataViewSpinRenderer
authorRobert Roebling <robert@roebling.de>
Sat, 20 Oct 2007 20:15:05 +0000 (20:15 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 20 Oct 2007 20:15:05 +0000 (20:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/dataview.cpp

index e6753a96caa17b69286e483720c6e8a19fde83fe..e89052f02d0b92ab368e41965b6906d6f6c65dc9 100644 (file)
@@ -662,7 +662,7 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
     m_musicCtrl->AppendTextColumn( "Artist", 1, wxDATAVIEW_CELL_EDITABLE, 150,
                                      DEFAULT_ALIGN, wxDATAVIEW_COL_SORTABLE );
 
-    MySpinCtrlInPlaceRenderer *sr = new MySpinCtrlInPlaceRenderer;
+    wxDataViewSpinRenderer *sr = new wxDataViewSpinRenderer( 0, 2010 );
     wxDataViewColumn *column = new wxDataViewColumn( "year", sr, 2, -1, wxALIGN_CENTRE, wxDATAVIEW_COL_SORTABLE );
     m_musicCtrl->AppendColumn( column );