From: Mattia B. <mb...@ds...> - 2002-09-26 20:58:20
|
> Hi, > i am making an accounting report tool with wxTreeCtrl. > > In the script you can save a project, reopen it, change it, save it again, etc. > I want to add an dialog when the user exits the script that gives him a warning > if the tree has changed without saving. > > The question is if i have a kind of event related to TreeCtrl that triggers > when a change in item/tree attributes occurs and that can help me set a > 'changes occured' flag. For item labels you can use EVT_END_LABEL_EDIT and compare the label with the old one (that you need to save in the EVT_BEGIN_LABEL_EDIT handler). HTH Mattia |