-#if !defined(__WXUNIVERSAL__) && defined( __WXMAC__ ) && defined( __WXMAC_OSX__ ) && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 )
- // search control was introduced in Mac OS X 10.3 Panther
- #define USE_NATIVE_SEARCH_CONTROL 1
-#else
- //not supported on these platforms, leave 0
- #define USE_NATIVE_SEARCH_CONTROL 0
-#endif
+ // search control
+#if wxUSE_MENUS
+ virtual void SetMenu(wxMenu *menu) = 0;
+ virtual wxMenu *GetMenu() = 0;
+#endif // wxUSE_MENUS
+
+ // get/set options
+ virtual void ShowSearchButton( bool show ) = 0;
+ virtual bool IsSearchButtonVisible() const = 0;
+
+ virtual void ShowCancelButton( bool show ) = 0;
+ virtual bool IsCancelButtonVisible() const = 0;
+
+private:
+ // implement wxTextEntry pure virtual method
+ virtual wxWindow *GetEditableWindow() { return this; }
+};