X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d656ea93c0f3d53f97a1c67244baa39d72b7334..c0b0635cf69537ca32377bad5650b39402cb21b6:/src/cocoa/radiobox.mm diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index 37cffde012..6352832477 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -6,11 +6,15 @@ // Created: 2003/02/15 // RCS-ID: $Id: // Copyright: (c) 2003 David Elliott -// Licence: wxWindows license +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/app.h" -#include "wx/radiobox.h" +#include "wx/wxprec.h" +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/radiobox.h" + #include "wx/arrstr.h" +#endif //WX_PRECOMP #import @@ -19,6 +23,21 @@ BEGIN_EVENT_TABLE(wxRadioBox, wxControl) END_EVENT_TABLE() // WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView) +bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, + const wxString& title, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + int majorDim, + long style, const wxValidator& validator, + const wxString& name) +{ + wxCArrayString chs(choices); + + return Create(parent, winid, title, pos, size, chs.GetCount(), + chs.GetStrings(), majorDim, style, validator, name); +} + bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, const wxString& title, const wxPoint& pos, @@ -88,3 +107,8 @@ int wxRadioBox::GetRowCount() const return 0; } +wxSize wxRadioBox::DoGetBestSize() const +{ + return wxSize(50,50); +} +