X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f6f938f3ae351311188f4d95124d51bf44e0f75..fd928524917cb25b0bf016c6f24dfb85de527a3e:/include/wx/mac/combobox.h diff --git a/include/wx/mac/combobox.h b/include/wx/mac/combobox.h index f730beb2c1..68b3b02820 100644 --- a/include/wx/mac/combobox.h +++ b/include/wx/mac/combobox.h @@ -22,7 +22,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr; // Combobox item -class WXDLLEXPORT wxComboBox: public wxComboBoxBase , public wxControl +class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase { DECLARE_DYNAMIC_CLASS(wxComboBox) @@ -53,6 +53,17 @@ class WXDLLEXPORT wxComboBox: public wxComboBoxBase , public wxControl { Create(parent, id, value, pos, size, n, choices, style, validator, name); } + inline wxComboBox(wxWindow *parent, wxWindowID id, + const wxString& value, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxComboBoxNameStr) + { + Create(parent, id, value, pos, size, choices, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id, const wxString& value = wxEmptyString, @@ -62,6 +73,14 @@ class WXDLLEXPORT wxComboBox: public wxComboBoxBase , public wxControl long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxComboBoxNameStr); + bool Create(wxWindow *parent, wxWindowID id, + const wxString& value, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxComboBoxNameStr); // List functions virtual void Delete(int n); @@ -106,6 +125,8 @@ protected: virtual void DoSetItemClientObject(int n, wxClientData* clientData) ; virtual wxClientData* DoGetItemClientObject(int n) const ; + void FreeData(); + // the subcontrols wxTextCtrl* m_text; wxChoice* m_choice;