]> git.saurik.com Git - wxWidgets.git/commitdiff
Use SetCanFocus
authorRobin Dunn <robin@alldunn.com>
Thu, 27 Mar 2008 21:23:56 +0000 (21:23 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 27 Mar 2008 21:23:56 +0000 (21:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/stc/stc.cpp.in
src/stc/stc.h.in

index 73a311bf8b051a8f5a1656b4224f0b7ae60b2415..b5d72181357e57c092b3e690c16eb8d856c495ae 100644 (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;
 }
 
index ecace6cb06e42ed13ea5880c0cadeaec568979d6..0751300339b2b5ea5115432172c3ab1f904c64b0 100644 (file)
@@ -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