X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fb6915941f155741ab282eb8fcffb480407a982..3bdec81e147765682eda34adb84288a5eb9ab6c2:/wxPython/src/_srchctrl.i diff --git a/wxPython/src/_srchctrl.i b/wxPython/src/_srchctrl.i index cac34b3cfd..1449811f15 100644 --- a/wxPython/src/_srchctrl.i +++ b/wxPython/src/_srchctrl.i @@ -23,8 +23,8 @@ MAKE_CONST_WXSTRING(SearchCtrlNameStr); // 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 @@ -71,7 +71,7 @@ DocStr(wxSearchCtrl, "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. @@ -94,14 +94,14 @@ Enter key in the control and wishes to start a search. 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. + ========================= ========================================= "); @@ -158,7 +158,6 @@ v10.3", ""); 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.", ""); @@ -200,12 +199,12 @@ work on the Mac.", ""); -%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) } //---------------------------------------------------------------------------