diff --git a/samples/text/text.cpp b/samples/text/text.cpp index d31035259d..9aaa7d1d95 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -754,7 +754,11 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event) break; case WXK_F6: - SetValue("SetValue() has been called"); + wxLogMessage(_T("IsModified() before SetValue(): %d"), + IsModified()); + SetValue(_T("SetValue() has been called")); + wxLogMessage(_T("IsModified() after SetValue(): %d"), + IsModified()); break; case WXK_F7: