// 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.
+ ========================= =========================================
");