print overlap gone, mouse/cursor handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -313,16 +313,16 @@ wxLayoutWindow::OnMouse(int eventId, wxMouseEvent& event)
|
||||
case WXLOWIN_MENU_LDOWN:
|
||||
{
|
||||
// always move cursor to mouse click:
|
||||
if ( obj )
|
||||
// if ( obj )
|
||||
{
|
||||
// we have found the real position
|
||||
m_llist->MoveCursorTo(cursorPos);
|
||||
}
|
||||
else
|
||||
{
|
||||
// click beyond the end of the text
|
||||
m_llist->MoveCursorToEnd();
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// // click beyond the end of the text
|
||||
// m_llist->MoveCursorToEnd();
|
||||
// }
|
||||
|
||||
// clicking a mouse removes the selection
|
||||
if ( m_llist->HasSelection() )
|
||||
@@ -385,7 +385,7 @@ wxLayoutWindow::OnMouse(int eventId, wxMouseEvent& event)
|
||||
m_llist->StartSelection();
|
||||
m_llist->MoveCursorWord(1, false);
|
||||
m_llist->EndSelection();
|
||||
|
||||
m_Selecting = false;
|
||||
DoPaint(); // TODO: we don't have to redraw everything!
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user