added a DiscardEdits() test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-07-16 19:03:51 +00:00
parent b3d006af0f
commit dabb9b6d29

View File

@ -967,6 +967,11 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event)
case WXK_F10:
AppendText(_T("AppendText() has been called"));
break;
case WXK_F11:
DiscardEdits();
wxLogMessage(_T("Control marked as non modified"));
break;
}
if ( ms_logKey )