PrepareDC( dc );
SetFocus();
-
wxPoint findPos;
findPos.x = dc.DeviceToLogicalX(event.GetX());
findPos.y = dc.DeviceToLogicalY(event.GetY());
{
m_llist->MoveCursorTo(cursorPos);
ScrollToCursor();
- Refresh();
+ Refresh(FALSE); // DoPaint suppresses flicker under GTK
}
if(!m_doSendEvents) // nothing to do
return;
default:
if(keyCode == 'c' && event.ControlDown())
Copy();
- break;
if( IsEditable() )
{
/* First, handle control keys */
}// first switch()
ScrollToCursor();
wxRect r = *m_llist->GetUpdateRect();
- Refresh( FALSE, &r);
+ DoPaint(&r);
}
void
wxLayoutWindow::OnSetFocus(wxFocusEvent &ev)
{
m_HaveFocus = true;
-//FIXME DoPaint(); // to repaint the cursor
+//FIXME: need argument DoPaint(); // to repaint the cursor
}
void
wxLayoutWindow::OnKillFocus(wxFocusEvent &ev)
{
m_HaveFocus = false;
-//FIXME DoPaint(); // to repaint the cursor
+//FIXME: need argument DoPaint(); // to repaint the cursor
}