Applied patch [ 605189 ] add edit cancel notify to wxTreeEvent
authorJulian Smart <julian@anthemion.co.uk>
Thu, 5 Sep 2002 19:50:41 +0000 (19:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 5 Sep 2002 19:50:41 +0000 (19:50 +0000)
commitdd23c25cde86903f2a4115e4a24e891e80d477e4
treebc8076cbe770b152a14692f95a244dbe9bfc8687
parent67a92fff32cff63951c30a10f92210df42b263b7
Applied patch [ 605189 ] add edit cancel notify to wxTreeEvent

Benjamin I. Williams

Currently there is no way of receiving notification
that a user cancelled an edit operation on a wxTreeCtrl
tree node label.

This patch adds a method "IsEditCancelled" to the
wxTreeEvent class. During an EVT_TREE_END_LABEL_EDIT
event, the programmer can now determine whether or not
the edit operation was cancelled by the user (by
pressing <ESC>).

This patch provides this implementation for both
wxMSW's wxTreeCtrl and the wxGenericTreeCtrl. Both
situations have been tested and work well.

The patch is not very invasive, and is much smaller
than I had expected.

Please see the relevent discussion on the wx-dev list
for more details.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
docs/latex/wx/treeevt.tex
include/wx/generic/treectlg.h
include/wx/treebase.h
src/common/treebase.cpp
src/generic/treectlg.cpp
src/msw/treectrl.cpp