X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/727953356df2db52b0292589782175fd6de37e03..8ae4f08661d7b324d5cd7aa16ab1a7b2810d94f2:/src/motif/choice.cpp diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index 27673013fa..6a24190b8e 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -13,6 +13,9 @@ #pragma implementation "choice.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #ifdef __VMS #define XtDisplay XTDISPLAY #define XtParent XTPARENT @@ -22,6 +25,7 @@ #include "wx/choice.h" #include "wx/utils.h" +#include "wx/arrstr.h" #ifdef __VMS__ #pragma message disable nosimpint @@ -143,6 +147,19 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id, return TRUE; } +bool wxChoice::Create(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style, + const wxValidator& validator, + const wxString& name) +{ + wxCArrayString chs(choices); + return Create(parent, id, pos, size, chs.GetCount(), chs.GetStrings(), + style, validator, name); +} + wxChoice::~wxChoice() { // For some reason destroying the menuWidget