// define a dummy class for builds that don't have wxSearchCtrl
enum {
- wxEVT_COMMAND_SEARCHCTRL_CANCEL,
- wxEVT_COMMAND_SEARCHCTRL_SEARCH
+ wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
+ wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
};
class wxSearchCtrl : public wxTextCtrl
"A search control is a composite of a `wx.TextCtrl` with optional
bitmap buttons and a drop-down menu. Controls like this can typically
be found on a toolbar of applications that support some form of search
-functionality. On the Mac this control is implemneted using the
+functionality. On the Mac this control is implemented using the
native HISearchField control, on the other platforms a generic control
is used, although that may change in the future as more platforms
introduce native search widgets.
Events
-------
- ====================== =========================================
- EVT_SEARCHCTRL_SEARCH Sent when the search icon is clicked
- EVT_SEARCHCTRL_CANCEL Sent when the cancel icon is clicked
- EVT_TEXT Sent when the text changes
- EVT_TEXT_ENTER Sent when the RETURN/ENTER key is pressed
- in the search control and the control has
- the wx.TE_PROCESS_ENTER style flag set.
- ====================== =========================================
+ ========================= =========================================
+ EVT_SEARCHCTRL_SEARCH_BTN Sent when the search icon is clicked
+ EVT_SEARCHCTRL_CANCEL_BTN Sent when the cancel icon is clicked
+ EVT_TEXT Sent when the text changes
+ EVT_TEXT_ENTER Sent when the RETURN/ENTER key is pressed
+ in the search control and the control has
+ the wx.TE_PROCESS_ENTER style flag set.
+ ========================= =========================================
");
attached, the search button will be visible regardless of the search
button visibility value. This always returns false in Mac OS X v10.3", "");
-
DocDeclStr(
virtual void , ShowCancelButton( bool show ),
"Shows or hides the cancel button.", "");
-%constant wxEventType wxEVT_COMMAND_SEARCHCTRL_CANCEL;
-%constant wxEventType wxEVT_COMMAND_SEARCHCTRL_SEARCH;
+%constant wxEventType wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN;
+%constant wxEventType wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN;
%pythoncode {
- EVT_SEARCHCTRL_CANCEL = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_CANCEL, 1)
- EVT_SEARCHCTRL_SEARCH = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_SEARCH, 1)
+ EVT_SEARCHCTRL_CANCEL_BTN = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN, 1)
+ EVT_SEARCHCTRL_SEARCH_BTN = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN, 1)
}
//---------------------------------------------------------------------------