]> git.saurik.com Git - wxWidgets.git/commitdiff
added test for cancelled END_EDIT
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Oct 2003 09:06:58 +0000 (09:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Oct 2003 09:06:58 +0000 (09:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/listctrl/listtest.cpp

index 2f43870e2159a892d152943f47bab17f1565651e..89bda1e810bd16fb73aa9abdf897e6e6dd7125dd 100644 (file)
@@ -716,7 +716,9 @@ void MyListCtrl::OnBeginLabelEdit(wxListEvent& event)
 
 void MyListCtrl::OnEndLabelEdit(wxListEvent& event)
 {
 
 void MyListCtrl::OnEndLabelEdit(wxListEvent& event)
 {
-    wxLogMessage( wxT("OnEndLabelEdit: %s"), event.m_item.m_text.c_str());
+    wxLogMessage( wxT("OnEndLabelEdit: %s"),
+                  event.IsEditCancelled() ? _T("[cancelled]")
+                                          : event.m_item.m_text.c_str());
 }
 
 void MyListCtrl::OnDeleteItem(wxListEvent& event)
 }
 
 void MyListCtrl::OnDeleteItem(wxListEvent& event)