X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78c91815008ef5888231c6c7f3678872e9e35ff6..e328812d748d2db49440a5fcf3ef9d3a49edbd56:/samples/text/text.cpp diff --git a/samples/text/text.cpp b/samples/text/text.cpp index fe76bd993f..eacc38f47f 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -782,15 +782,16 @@ void MyTextCtrl::OnText(wxCommandEvent& event) return; MyTextCtrl *win = (MyTextCtrl *)event.GetEventObject(); + const wxChar *changeVerb = win->IsModified() ? _T("changed") + : _T("set by program"); const wxChar *data = (const wxChar *)(win->GetClientData()); if ( data ) { - wxLogMessage(_T("Text changed in control '%s'"), data); + wxLogMessage(_T("Text %s in control \"%s\""), changeVerb, data); } else { - // wxLogMessage( event.GetString() ); - wxLogMessage(_T("Text changed in some control")); + wxLogMessage(_T("Text %s in some control"), changeVerb); } }