From: Vadim Zeitlin Date: Tue, 7 Oct 2003 09:06:58 +0000 (+0000) Subject: added test for cancelled END_EDIT X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1bf37bf5b1d13f681dbdd4d303356a4bcd1d8898 added test for cancelled END_EDIT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 2f43870e21..89bda1e810 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -716,7 +716,9 @@ void MyListCtrl::OnBeginLabelEdit(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)