X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..594ed110f77d9f29f7165a07bb806e5a4fa19b0e:/include/wx/mac/choice.h diff --git a/include/wx/mac/choice.h b/include/wx/mac/choice.h index ea9756f1a4..4c10bab315 100644 --- a/include/wx/mac/choice.h +++ b/include/wx/mac/choice.h @@ -18,7 +18,8 @@ #include "wx/control.h" - #include "wx/dynarray.h" +#include "wx/dynarray.h" +#include "wx/arrstr.h" WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr; @@ -46,6 +47,16 @@ public: { Create(parent, id, pos, size, n, choices, style, validator, name); } + wxChoice(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxChoiceNameStr) + { + Create(parent, id, pos, size, choices, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, @@ -54,6 +65,13 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr); + bool Create(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxChoiceNameStr); // implement base class pure virtuals virtual int DoAppend(const wxString& item); @@ -72,11 +90,14 @@ public: protected: virtual wxSize DoGetBestSize() const ; + +public: // for wxComboBox only virtual void DoSetItemClientData( int n, void* clientData ); virtual void* DoGetItemClientData( int n ) const; virtual void DoSetItemClientObject( int n, wxClientData* clientData ); virtual wxClientData* DoGetItemClientObject( int n ) const; +protected: // free all memory we have (used by Clear() and dtor) // prevent collision with some BSD definitions of macro Free() void FreeData();