X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88fb99a26279174b9a6e94c735a8fb933d9f1883..4ae3fe39529688ffc016b2059321720d8bde7064:/samples/text/text.cpp diff --git a/samples/text/text.cpp b/samples/text/text.cpp index e40562aeb4..bf9b9dc253 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -921,6 +921,10 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event) wxLogMessage(_T("Selection = '%s' (len = %u)"), sel.c_str(), (unsigned int) sel.length()); + + const wxString text = GetLineText(line); + wxLogMessage(_T("Current line: \"%s\"; length = %lu"), + text.c_str(), text.length()); } break;