down list, not just a wxListBox.
So we define a base wxComboControl which can use any control as pop down
down list, not just a wxListBox.
So we define a base wxComboControl which can use any control as pop down
combobox API. wxComboControl needs to be told somehow which control to use
and this is done by SetPopupControl(). However, we need something more than
just a wxControl in this method as, for example, we need to call
combobox API. wxComboControl needs to be told somehow which control to use
and this is done by SetPopupControl(). However, we need something more than
just a wxControl in this method as, for example, we need to call
// called before showing the control to set the initial selection - notice
// that the text passed to this method might not correspond to any valid
// item (if the user edited it directly), in which case the method should
// called before showing the control to set the initial selection - notice
// that the text passed to this method might not correspond to any valid
// item (if the user edited it directly), in which case the method should
virtual bool SetSelection(const wxString& value) = 0;
// called immediately after the control is shown
virtual bool SetSelection(const wxString& value) = 0;
// called immediately after the control is shown
bool IsPopupShown() const { return m_isPopupShown; }
// get the popup window containing the popup control
bool IsPopupShown() const { return m_isPopupShown; }
// get the popup window containing the popup control