From 5e328f387997f9516d34943b0d68668e8b05ef38 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 27 Mar 2008 21:23:56 +0000 Subject: [PATCH] Use SetCanFocus git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/stc/stc.cpp.in | 4 ++++ src/stc/stc.h.in | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 73a311bf8b..b5d7218135 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -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; } diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in index ecace6cb06..0751300339 100644 --- a/src/stc/stc.h.in +++ b/src/stc/stc.h.in @@ -39,12 +39,6 @@ class WXDLLIMPEXP_FWD_CORE wxScrollBar; #endif #endif -//---------------------------------------------------------------------- - -// Should a wxPopupWindow be used for the call tips and autocomplete windows? -#ifndef wxSTC_USE_POPUP -#define wxSTC_USE_POPUP 1 -#endif //---------------------------------------------------------------------- // BEGIN generated section. The following code is automatically generated -- 2.45.2