+ if (m_alternateImages)
+ {
+ icons[TreeCtrlIcon_File] = wxIcon(icon1_xpm);
+ icons[TreeCtrlIcon_FileSelected] = wxIcon(icon2_xpm);
+ icons[TreeCtrlIcon_Folder] = wxIcon(icon3_xpm);
+ icons[TreeCtrlIcon_FolderSelected] = wxIcon(icon4_xpm);
+ icons[TreeCtrlIcon_FolderOpened] = wxIcon(icon5_xpm);
+ }
+ else
+ {
+ wxSize iconSize(size, size);
+
+ icons[TreeCtrlIcon_File] =
+ icons[TreeCtrlIcon_FileSelected] = wxArtProvider::GetIcon(wxART_NORMAL_FILE, wxART_LIST, iconSize);
+ icons[TreeCtrlIcon_Folder] =
+ icons[TreeCtrlIcon_FolderSelected] =
+ icons[TreeCtrlIcon_FolderOpened] = wxArtProvider::GetIcon(wxART_FOLDER, wxART_LIST, iconSize);
+ }
+