If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
void myclass::onTreeEndLabelEdit(wxTreeEvent& event) {
wxTreeItemId id = event.GetItem();
wxString str;
//here I want to store new label but getting the old one.
str = m_treeCtrl1->GetItemText(id);
}
sackett wrote: ↑Fri Mar 15, 2019 11:45 am
I've read info from your link but no idea how to use it.
(How I get the object and how I get a string needed?)
The wxTreeEvent is passed to the event handler. So all you need is this: