Updated testconf
Added dashed pens etc. Made tree ctrl sample crash.. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -340,8 +340,8 @@ void MyFrame::OnAddItem(wxCommandEvent& WXUNUSED(event))
|
||||
text.Printf("Item #%d", ++s_num);
|
||||
|
||||
m_treeCtrl->AppendItem(m_treeCtrl->GetRootItem(),
|
||||
text,
|
||||
MyTreeCtrl::TreeCtrlIcon_File);
|
||||
text /*,
|
||||
MyTreeCtrl::TreeCtrlIcon_File */ );
|
||||
}
|
||||
|
||||
void MyFrame::OnIncIndent(wxCommandEvent& WXUNUSED(event))
|
||||
@@ -452,7 +452,8 @@ void MyTreeCtrl::AddItemsRecursively(const wxTreeItemId& idParent,
|
||||
else
|
||||
str.Printf("%s child %d", "Folder", n + 1);
|
||||
|
||||
int image = depth == 1 ? TreeCtrlIcon_File : TreeCtrlIcon_Folder;
|
||||
// int image = depth == 1 ? TreeCtrlIcon_File : TreeCtrlIcon_Folder;
|
||||
int image = depth == 1 ? -1 : TreeCtrlIcon_Folder;
|
||||
wxTreeItemId id = AppendItem(idParent, str, image, image,
|
||||
new MyTreeItemData(str));
|
||||
|
||||
|
Reference in New Issue
Block a user