X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a194bda7be7c240a3856413e19d7152ecfd7439..f2b6dd8c508ddc1ebfee5b7d6e68a44b4e05a50f:/interface/wx/combo.h diff --git a/interface/wx/combo.h b/interface/wx/combo.h index 6b7291eca4..d6e219350e 100644 --- a/interface/wx/combo.h +++ b/interface/wx/combo.h @@ -36,6 +36,18 @@ public: */ virtual bool Create(wxWindow* parent) = 0; + /** + You only need to implement this member function if you create + your popup class in non-standard way. The default implementation can + handle both multiple-inherited popup control (as seen in wxComboCtrl + samples) and one allocated separately in heap. + + If you do completely re-implement this function, make sure it calls + Destroy() for the popup control and also deletes @a this object + (usually as the last thing). + */ + virtual void DestroyPopup(); + /** Utility function that hides the popup. */ @@ -811,12 +823,6 @@ public: */ virtual void SetValue(const wxString& value); - /** - Same as SetValue(), but also sends wxCommandEvent of type - @c wxEVT_COMMAND_TEXT_UPDATED if @a withEvent is @true. - */ - void SetValueWithEvent(const wxString& value, bool withEvent = true); - /** Show the popup. @@ -856,7 +862,7 @@ protected: /** This member function is not normally called in application code. Instead, it can be implemented in a derived class to return default - wxComboPopup, incase @a popup is @NULL. + wxComboPopup, in case @a popup is @NULL. @note If you have implemented OnButtonClick() to do something else than show the popup, then DoSetPopupControl() must always set @a popup