]> git.saurik.com Git - wxWidgets.git/commitdiff
added a DiscardEdits() test
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jul 2006 19:03:51 +0000 (19:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jul 2006 19:03:51 +0000 (19:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/text/text.cpp

index eacc38f47fcfc93c8b24c8428c9514a461a51ace..61eab09b2e8a3b6c2735ac7ad66669db60495714 100644 (file)
@@ -967,6 +967,11 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event)
         case WXK_F10:
             AppendText(_T("AppendText() has been called"));
             break;
         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 )
     }
 
     if ( ms_logKey )