added GetLineText() test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-11-13 13:48:11 +00:00
parent d154ab3d29
commit b7ca485316

View File

@ -921,6 +921,10 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event)
wxLogMessage(_T("Selection = '%s' (len = %u)"), wxLogMessage(_T("Selection = '%s' (len = %u)"),
sel.c_str(), sel.c_str(),
(unsigned int) sel.length()); (unsigned int) sel.length());
const wxString text = GetLineText(line);
wxLogMessage(_T("Current line: \"%s\"; length = %lu"),
text.c_str(), text.length());
} }
break; break;