]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/srchctrl.h
Cocoa text fields and views have their own context menus, so we should use those...
[wxWidgets.git] / include / wx / srchctrl.h
index ccd27a29be1e6c6c793da7fd7eb1edb6ff6f2803..9b08f60a144e134d4b66d0a89d85eac99055e4ef 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "wx/textctrl.h"
 
-#if !defined(__WXUNIVERSAL__) && defined(__WXMAC__) 
+#if !defined(__WXUNIVERSAL__) && defined(__WXMAC__)
     // search control was introduced in Mac OS X 10.3 Panther
     #define wxUSE_NATIVE_SEARCH_CONTROL 1
 
@@ -64,6 +64,10 @@ public:
 
     virtual void ShowCancelButton( bool show ) = 0;
     virtual bool IsCancelButtonVisible() const = 0;
+
+private:
+    // implement wxTextEntry pure virtual method
+    virtual wxWindow *GetEditableWindow() { return this; }
 };