+ wxDataViewListCtrl *listctrl = new wxDataViewListCtrl( panel, -1,
+ wxDefaultPosition, wxSize(100,200) );
+
+ listctrl->AppendToggleCol( wxT("Toggle") );
+ listctrl->AppendTextCol( wxT("Text") );
+
+ wxVector<wxVariant> data;
+ data.push_back( true );
+ data.push_back( "row 1" );
+ listctrl->AppendItem( data );
+
+ data.clear();
+ data.push_back( false );
+ data.push_back( "row 3" );
+ listctrl->AppendItem( data );
+
+ bottom_sizer->Add( listctrl, 1 );
+
+
+ // wxDataViewTreeCtrl
+
+ wxDataViewTreeCtrl *treectrl2 = new wxDataViewTreeCtrl( panel, -1, wxDefaultPosition, wxSize(100,200) );
+
+ wxImageList *ilist = new wxImageList( 16, 16 );
+ ilist->Add( wxIcon(small1_xpm) );
+ treectrl2->SetImageList( ilist );
+
+ wxDataViewItem parent2 = treectrl2->AppendContainer( wxDataViewItem(0),wxT("Root 1"), 0 );
+ wxDataViewItem child2 = treectrl2->AppendItem( parent2, wxT("Child 1"), 0 );
+ child2 = treectrl2->AppendItem( parent2, wxT("Child 2"), 0 );
+ child2 = treectrl2->AppendItem( parent2, wxT("Child 3, very long, long, long, long"), 0 );
+
+ bottom_sizer->Add( treectrl2, 1 );
+
+ // main sizer
+
+ main_sizer->Add( bottom_sizer, 0, wxGROW );
+
+ panel->SetSizer( main_sizer );
+}
+
+MyFrame::~MyFrame()
+{
+ delete wxLog::SetActiveTarget(m_logOld);