X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2699196d3099c3659850ba934a24e205184d8d4..d09dd96e31ab84de80d4560dfc7b0d77bb6248a3:/src/univ/radiobox.cpp?ds=sidebyside diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index c758abf74b..621fde6d6f 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -34,6 +34,7 @@ #include "wx/radiobox.h" #include "wx/radiobut.h" #include "wx/validate.h" + #include "wx/arrstr.h" #endif #include "wx/tooltip.h" @@ -101,6 +102,37 @@ void wxRadioBox::Init() m_majorDim = 0; } +wxRadioBox::wxRadioBox(wxWindow *parent, wxWindowID id, const wxString& title, + const wxPoint& pos, const wxSize& size, + const wxArrayString& choices, + int majorDim, long style, + const wxValidator& val, const wxString& name) +{ + wxCArrayString chs(choices); + + Init(); + + (void)Create(parent, id, title, pos, size, chs.GetCount(), + chs.GetStrings(), majorDim, style, val, name); +} + +bool wxRadioBox::Create(wxWindow *parent, + wxWindowID id, + const wxString& title, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + int majorDim, + long style, + const wxValidator& val, + const wxString& name) +{ + wxCArrayString chs(choices); + + return Create(parent, id, title, pos, size, chs.GetCount(), + chs.GetStrings(), majorDim, style, val, name); +} + bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,