+
+#if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
+// define a dummy class for builds that don't have wxSearchCtrl
+
+enum {
+ wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
+ wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
+};
+
+class wxSearchCtrl : public wxTextCtrl
+{
+public:
+ wxSearchCtrl() { wxPyRaiseNotImplemented(); }
+ wxSearchCtrl(wxWindow*, wxWindowID,
+ const wxString&,
+ const wxPoint&,
+ const wxSize&,
+ long style,
+ const wxValidator&,
+ const wxString& name)
+ { wxPyRaiseNotImplemented(); }
+
+ bool Create( wxWindow*, wxWindowID,
+ const wxString&,
+ const wxPoint&,
+ const wxSize&,
+ long style,
+ const wxValidator&,
+ const wxString& name) {}
+
+ virtual void SetMenu( wxMenu* ) {}
+ virtual wxMenu* GetMenu() { return NULL; }
+
+ // get/set search options
+ // ----------------------
+ virtual void ShowSearchButton( bool ) {}
+ virtual bool IsSearchButtonVisible() const { return false; }
+
+ virtual void ShowCancelButton( bool ) {}
+ virtual bool IsCancelButtonVisible() const { return false; }
+};
+#endif
+