X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0306e73e630bce45a3f56a0616559250fcb8c05e..58ce18f2fdadecffb21e27555115af708325cf18:/include/wx/combo.h diff --git a/include/wx/combo.h b/include/wx/combo.h index 6dd69ab8e0..9c38cda211 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -160,7 +160,17 @@ public: virtual ~wxComboCtrlBase(); - // show/hide popup window + // Show/hide popup window (wxComboBox-compatible methods) + virtual void Popup(); + virtual void Dismiss() + { + HidePopup(true); + } + + // Show/hide popup window. + // TODO: Maybe deprecate in favor of Popup()/Dismiss(). + // However, these functions are still called internally + // so it is not straightforward. virtual void ShowPopup(); virtual void HidePopup(bool generateEvent=false); @@ -764,6 +774,13 @@ public: // Gets displayed string representation of the value. virtual wxString GetStringValue() const = 0; + // Called to check if the popup - when an item container - actually + // has matching item. Case-sensitivity checking etc. is up to the + // implementation. If the found item matched the string, but is + // different, it should be written back to pItem. Default implementation + // always return true and does not alter trueItem. + virtual bool FindItem(const wxString& item, wxString* trueItem=NULL); + // This is called to custom paint in the combo control itself (ie. not the popup). // Default implementation draws value as string. virtual void PaintComboControl( wxDC& dc, const wxRect& rect );