Forgot to actually use image list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -726,8 +726,11 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
|
|||||||
// wxDataViewTreeCtrl
|
// wxDataViewTreeCtrl
|
||||||
|
|
||||||
wxDataViewTreeCtrl *treectrl2 = new wxDataViewTreeCtrl( this, -1, wxDefaultPosition, wxSize(300,200) );
|
wxDataViewTreeCtrl *treectrl2 = new wxDataViewTreeCtrl( this, -1, wxDefaultPosition, wxSize(300,200) );
|
||||||
|
|
||||||
wxImageList *ilist = new wxImageList;
|
wxImageList *ilist = new wxImageList;
|
||||||
ilist->Add( wxIcon(small1_xpm) );
|
ilist->Add( wxIcon(small1_xpm) );
|
||||||
|
treectrl2->SetImageList( ilist );
|
||||||
|
|
||||||
parent = treectrl2->AppendContainer( wxDataViewItem(0), "Root 1", 0 );
|
parent = treectrl2->AppendContainer( wxDataViewItem(0), "Root 1", 0 );
|
||||||
child = treectrl2->AppendItem( parent, "Child 1", 0 );
|
child = treectrl2->AppendItem( parent, "Child 1", 0 );
|
||||||
child = treectrl2->AppendItem( parent, "Child 2", 0 );
|
child = treectrl2->AppendItem( parent, "Child 2", 0 );
|
||||||
|
Reference in New Issue
Block a user