24#include <wx/listctrl.h> 
   41        wxArrayString 
split(wxString sString);
 
   44        virtual bool Create(wxWindow* parent)
 override 
   46            return wxListView::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_NO_HEADER | wxLC_SINGLE_SEL | wxLC_VRULES);
 
   49        virtual void Init()
 override 
   66        void OnMouseUp(wxMouseEvent& WXUNUSED(event));
 
   70        void Set(wxArrayString& stringArray);
 
  119        void SetCallTips(
const wxString& calltip, 
const wxString& calltiphighlight = wxEmptyString)
 
  147        virtual bool selectItem(
const wxString& value);
 
  149        virtual wxArrayString 
getCandidates(
const wxString& enteredText);
 
  152        SearchCtrl(wxWindow* parent, wxWindowID 
id, 
const wxString& value = wxEmptyString, 
int style = wxCB_SORT) : wxComboCtrl(parent, id, value, wxDefaultPosition, wxDefaultSize, style), 
textChangeMutex(false)
 
  155            SetPopupControl(
popUp);
 
Implementation of a generic search control based on a combo box.
friend class SearchCtrlPopup
virtual wxArrayString getCandidates(const wxString &enteredText)
Child classes must override this member function to provide the candidates to be filled into the popu...
void OnMouseEnter(wxMouseEvent &event)
This event handler will show the drop down list, if the text field contains data and the mouse enters...
void OnItemSelect(wxCommandEvent &event)
This event handler function will be fired, if the user selects a proposed string in the opened dropdo...
SearchCtrl(wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, int style=wxCB_SORT)
virtual wxString getDragDropText(const wxString &value)
Child classes may override this member function to provide a custom string for the built-in drag-drop...
void OnTextChange(wxCommandEvent &event)
This event handler function will be fired, if the user changes the text in the control....
virtual bool selectItem(const wxString &value)
Child classes may override this member function to do something, when the user selects an item in the...