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:
parent
b3d006af0f
commit
dabb9b6d29
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user