1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface for wxSearchCtrl
9 // Copyright: (c) 2006 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
15 //---------------------------------------------------------------------------
18 MAKE_CONST_WXSTRING(SearchCtrlNameStr);
21 MustHaveApp(wxSearchCtrl);
24 class wxSearchCtrl : public wxTextCtrl
27 %pythonAppend wxSearchCtrl "self._setOORInfo(self)";
28 %pythonAppend wxSearchCtrl() "";
30 wxSearchCtrl(wxWindow *parent, wxWindowID id=-1,
31 const wxString& value = wxEmptyString,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxPySearchCtrlNameStr);
40 "Precreate a wx.SearchCtrl for 2-phase creation.", "",
43 bool Create(wxWindow *parent, wxWindowID id=-1,
44 const wxString& value = wxEmptyString,
45 const wxPoint& pos = wxDefaultPosition,
46 const wxSize& size = wxDefaultSize,
48 const wxValidator& validator = wxDefaultValidator,
49 const wxString& name = wxPySearchCtrlNameStr);
52 // get/set search button menu
53 // --------------------------
54 virtual void SetMenu( wxMenu* menu );
55 virtual wxMenu* GetMenu();
57 // get/set search options
58 // ----------------------
59 virtual void ShowSearchButton( bool show );
60 virtual bool IsSearchButtonVisible() const;
62 virtual void ShowCancelButton( bool show );
63 virtual bool IsCancelButtonVisible() const;
67 void SetSearchBitmap( const wxBitmap& ) {}
68 void SetSearchMenuBitmap( const wxBitmap& ) {}
69 void SetCancelBitmap( const wxBitmap& ) {}
72 void SetSearchBitmap( const wxBitmap& bitmap );
73 void SetSearchMenuBitmap( const wxBitmap& bitmap );
74 void SetCancelBitmap( const wxBitmap& bitmap );
78 %property(Menu, GetMenu, SetMenu);
79 %property(SearchButtonVisible, IsSearchButtonVisible, ShowSearchButton);
80 %property(CancelButtonVisible, IsCancelButtonVisible, ShowCancelButton);
86 %constant wxEventType wxEVT_COMMAND_SEARCHCTRL_CANCEL;
87 %constant wxEventType wxEVT_COMMAND_SEARCHCTRL_SEARCH;
90 EVT_SEARCHCTRL_CANCEL = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_CANCEL, 1)
91 EVT_SEARCHCTRL_SEARCH = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_SEARCH, 1)
94 //---------------------------------------------------------------------------