]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/treectrl/treetest.cpp
corrected (?) wxStringList::Delete()
[wxWidgets.git] / samples / treectrl / treetest.cpp
index 05b9adb2a308ae9be0f8e875f29e85a839695645..17d2ac3490bb6aeccb22f70fedb8a539dc7aa8ec 100644 (file)
@@ -180,7 +180,7 @@ void MyFrame::OnDump(wxCommandEvent& WXUNUSED(event))
 
 void MyFrame::DoSetBold(bool bold)
 {
-//  m_treeCtrl->SetItemBold(m_treeCtrl->GetSelection(), bold);
+  m_treeCtrl->SetItemBold(m_treeCtrl->GetSelection(), bold);
 }
 
 void MyFrame::OnDelete(wxCommandEvent& WXUNUSED(event))
@@ -336,9 +336,8 @@ static inline const char *Bool2String(bool b)
   return b ? "" : "not ";
 }
 
-void MyTreeItemData::ShowInfo(wxTreeCtrl */*tree*/)
+void MyTreeItemData::ShowInfo(wxTreeCtrl *tree)
 {
-/*
   wxLogMessage("Item '%s': %sselected, %sexpanded, %sbold,\n"
                "%u children (%u immediately under this item).",
                m_desc.c_str(),
@@ -347,5 +346,4 @@ void MyTreeItemData::ShowInfo(wxTreeCtrl */*tree*/)
                Bool2String(tree->IsBold(GetId())),
                tree->GetChildrenCount(GetId()),
                tree->GetChildrenCount(GetId(), FALSE));
-*/
 }