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.
|