]> git.saurik.com Git - wxWidgets.git/commitdiff
cursor reflects focus change
authorKarsten Ballüder <ballueder@usa.net>
Mon, 21 Jun 1999 11:17:16 +0000 (11:17 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 21 Jun 1999 11:17:16 +0000 (11:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/richedit/wxlwindow.cpp

index 1846e0a66813796c50f648c06300d026c797d950..644c49dce322c03255f8d69471c68bf29cf88e1d 100644 (file)
@@ -1181,6 +1181,7 @@ wxLayoutWindow::OnSetFocus(wxFocusEvent &ev)
 {
    m_HaveFocus = true;
    ev.Skip();
+   Refresh(FALSE); // cursor must change
 }
 
 void
@@ -1188,6 +1189,7 @@ wxLayoutWindow::OnKillFocus(wxFocusEvent &ev)
 {
    m_HaveFocus = false;
    ev.Skip();
+   Refresh(FALSE);// cursor must change
 }
 
 // ----------------------------------------------------------------------------