wxsearchctrla search control is a composite control with a search button, a text control, and a cancel button. derived from
wxtextctrl include files <wx/srchctrl.h> window styles
see also window styles overview and wxsearchctrl::wxsearchctrl. event handling to process input from a search control, use these event handler macros to direct input to member functions that take a wxcommandevent argument. to retrieve actual search queries, use evt_text and evt_text_enter events, just as you would with wxtextctrl.
wxsearchctrl::wxsearchctrl
wxsearchctrl::wxsearchctrlwxsearchctrl() default constructor. wxsearchctrl(wxwindow* parent, wxwindowid id, const wxstring& value = "", const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0, const wxvalidator& validator = wxdefaultvalidator, const wxstring& name = wxsearchctrlnamestr) constructor, creating and showing a text control. parameters parent
id
value
pos
size
style
validator
name
see also wxtextctrl::create, wxvalidator
wxsearchctrl::~wxsearchctrl~wxsearchctrl() destructor, destroying the search control.
wxsearchctrl::setmenuvirtual void setmenu(wxmenu* menu) sets the search control's menu object. if there is already a menu associated with the search control it is deleted. parameters menu
wxsearchctrl::getmenuvirtual wxmenu* getmenu() returns a pointer to the search control's menu object or null if there is no menu attached.
wxsearchctrl::showsearchbuttonvirtual void showsearchbutton(bool show) sets the search button visibility value on the search control. if there is a menu attached, the search button will be visible regardless of the search button visibility value. this has no effect in mac os x v10.3
wxsearchctrl::issearchbuttonvisiblevirtual bool issearchbuttonvisible() returns the search button visibility value. if there is a menu attached, the search button will be visible regardless of the search button visibility value. this always returns false in mac os x v10.3
wxsearchctrl::showcancelbuttonvirtual void showcancelbutton(bool show) shows or hides the cancel button.
wxsearchctrl::iscancelbuttonvisiblevirtual bool iscancelbuttonvisible() indicates whether the cancel button is visible.
|