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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user