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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user