1. wxLayoutList::GetNumLines() and MoveCursorToEnd() added (and work)

2. FindObjectScreen() applies the line style - corrects "mouse click mis
   positions the cursor" bug


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-06-11 12:10:26 +00:00
parent cc7755804f
commit f7770f09be
3 changed files with 46 additions and 9 deletions

View File

@@ -304,7 +304,7 @@ wxLayoutWindow::OnMouse(int eventId, wxMouseEvent& event)
else
{
// click beyond the end of the text
m_llist->MoveCursorTo(m_llist->GetSize());
m_llist->MoveCursorToEnd();
}
// clicking a mouse removes the selection
@@ -490,7 +490,7 @@ wxLayoutWindow::OnChar(wxKeyEvent& event)
break;
case WXK_END:
if ( ctrlDown )
m_llist->MoveCursorTo(m_llist->GetSize());
m_llist->MoveCursorToEnd();
else
m_llist->MoveCursorToEndOfLine();
break;