projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d154ab3
)
added GetLineText() test
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Tue, 13 Nov 2007 13:48:11 +0000
(13:48 +0000)
committer
Vadim 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
patch
|
blob
|
blame
|
history
diff --git
a/samples/text/text.cpp
b/samples/text/text.cpp
index e40562aeb4443032c6e39c0d7081abf849b27c8a..bf9b9dc253e61d77ddd97de0fc5ace51af8c8fe5 100644
(file)
--- 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;