+ m_log = new wxTextCtrl( this, -1, wxString(), wxDefaultPosition, wxSize(100,200), wxTE_MULTILINE );
+ m_logOld = wxLog::SetActiveTarget(new wxLogTextCtrl(m_log));
+ wxLogMessage(_("This is the log window"));
+
+ bottom_sizer->Add( m_log, 1, wxGROW );
+
+ // wxDataViewTreeStore
+
+ wxDataViewCtrl *treectrl = new wxDataViewCtrl( this, -1,
+ wxDefaultPosition, wxSize(100,200), wxDV_NO_HEADER );
+
+ wxDataViewTreeStore *store = new wxDataViewTreeStore;
+ wxDataViewItem parent = store->AppendContainer( wxDataViewItem(0),wxT("Root 1"), wxIcon(small1_xpm) );
+ wxDataViewItem child = store->AppendItem( parent,wxT("Child 1"), wxIcon(small1_xpm) );
+ child = store->AppendItem( parent,wxT("Child 2"), wxIcon(small1_xpm) );
+ child = store->AppendItem( parent,wxT("Child 3, very long, long, long, long"), wxIcon(small1_xpm) );
+ treectrl->AssociateModel( store );
+ store->DecRef();
+
+ treectrl->AppendIconTextColumn(wxT("no label"), 0, wxDATAVIEW_CELL_INERT, -1 );
+
+ bottom_sizer->Add( treectrl, 1 );
+
+ // wxDataViewTreeCtrl
+
+ wxDataViewTreeCtrl *treectrl2 = new wxDataViewTreeCtrl( this, -1, wxDefaultPosition, wxSize(100,200) );
+
+ wxImageList *ilist = new wxImageList( 16, 16 );
+ ilist->Add( wxIcon(small1_xpm) );
+ treectrl2->SetImageList( ilist );
+
+ parent = treectrl2->AppendContainer( wxDataViewItem(0),wxT("Root 1"), 0 );
+ child = treectrl2->AppendItem( parent,wxT("Child 1"), 0 );
+ child = treectrl2->AppendItem( parent,wxT("Child 2"), 0 );
+ child = treectrl2->AppendItem( parent,wxT("Child 3, very long, long, long, long"), 0 );
+
+ bottom_sizer->Add( treectrl2, 1 );
+
+ // main sizer