wxTreeEvent IsEditCancelled is a function used in wxWidgets library of C++ for handling events in a tree control. This function is called when the user cancels the editing of a tree item. It returns a boolean value of true if the edit was cancelled, and false if not.
Example 1: Checking if the edit was cancelled
void MyFrame::OnTreeItemEditing(wxTreeEvent& event) { if (event.IsEditCancelled()) { // Edit was cancelled } else { // Edit was not cancelled } }
This code example shows the use of wxTreeEvent IsEditCancelled to check if the user cancelled the editing of a tree item.
Package library: wxWidgets
Example 2: Displaying a message when edit is cancelled
This code example shows how to use wxTreeEvent IsEditCancelled to display a message when the user cancels the editing of a tree item.
Package library: wxWidgets
C++ (Cpp) wxTreeEvent::IsEditCancelled - 15 examples found. These are the top rated real world C++ (Cpp) examples of wxTreeEvent::IsEditCancelled extracted from open source projects. You can rate examples to help us improve the quality of examples.