Use SetCanFocus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2008-03-27 21:32:05 +00:00
parent d2367a0f78
commit 439cce1443

View File

@@ -197,6 +197,10 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
// Reduces flicker on GTK+/X11
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
// Make sure it can take the focus
SetCanFocus(true);
return true;
}