]> git.saurik.com Git - wxWidgets.git/commitdiff
added GetLineText() test
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 13:48:11 +0000 (13:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 13:48:11 +0000 (13:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/text/text.cpp

index e40562aeb4443032c6e39c0d7081abf849b27c8a..bf9b9dc253e61d77ddd97de0fc5ace51af8c8fe5 100644 (file)
@@ -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;