make it possible to change the text of the item being edited from OnBeginLabelEdit()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-04-03 00:27:52 +00:00
parent ed99e548af
commit 646a8a4d0e
2 changed files with 15 additions and 1 deletions

View File

@@ -1105,6 +1105,11 @@ void MyTreeCtrl::OnBeginLabelEdit(wxTreeEvent& event)
event.Veto();
}
else if ( itemId == GetRootItem() )
{
// test that it is possible to change the text of the item being edited
SetItemText(itemId, _T("Editing root item"));
}
}
void MyTreeCtrl::OnEndLabelEdit(wxTreeEvent& event)