1. don't call GetPartOfWrappendLine() unnecessarily

2. optimized it (replaced by a call to HitTestLine) for the other cases


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-26 02:05:33 +00:00
parent eafd9d4f24
commit 20b45caa12
4 changed files with 77 additions and 6 deletions

View File

@@ -446,7 +446,7 @@ TextTestFrame::TextTestFrame(const wxString& title)
#else
wxDefaultSize,
#endif
wxTE_MULTILINE);
wxTE_MULTILINE | wxHSCROLL);
sizerDown->Add(m_textLog, 1, wxGROW | wxALL, 5);
wxBoxSizer *sizerBtns = new wxBoxSizer(wxHORIZONTAL);
btn = new wxButton(m_panel, TextTest_ClearLog, _T("Clear &log"));