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:
Karsten Ballüder
1999-06-21 20:58:26 +00:00
parent d3a9f4afd9
commit a2c5528a9e
4 changed files with 40 additions and 30 deletions

View File

@@ -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;
}