From: Vadim Zeitlin Date: Tue, 13 Nov 2007 13:48:11 +0000 (+0000) Subject: added GetLineText() test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b7ca485316f99abe586f8df602799b63e1cec758 added GetLineText() test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;