projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477c48b
)
Forgot to actually use image list
author
Robert Roebling
<robert@roebling.de>
Sat, 1 Dec 2007 20:43:02 +0000
(20:43 +0000)
committer
Robert Roebling
<robert@roebling.de>
Sat, 1 Dec 2007 20:43:02 +0000
(20:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50407
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
samples/dataview/dataview.cpp
patch
|
blob
|
blame
|
history
diff --git
a/samples/dataview/dataview.cpp
b/samples/dataview/dataview.cpp
index 8a191f93489c220ba928de449baec3e0919eefcf..c50fa4aa10995297aefc62b16d129069552ed414 100644
(file)
--- a/
samples/dataview/dataview.cpp
+++ b/
samples/dataview/dataview.cpp
@@
-726,8
+726,11
@@
MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
// wxDataViewTreeCtrl
wxDataViewTreeCtrl *treectrl2 = new wxDataViewTreeCtrl( this, -1, wxDefaultPosition, wxSize(300,200) );
+
wxImageList *ilist = new wxImageList;
ilist->Add( wxIcon(small1_xpm) );
+ treectrl2->SetImageList( ilist );
+
parent = treectrl2->AppendContainer( wxDataViewItem(0), "Root 1", 0 );
child = treectrl2->AppendItem( parent, "Child 1", 0 );
child = treectrl2->AppendItem( parent, "Child 2", 0 );