X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/449c567346a1b3937e532cd87aac007faad76b04..488b2c29c0cf468f96f148003b21952611325dbf:/src/cocoa/radiobox.mm diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index ff0626e5c5..5d04a08528 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -4,15 +4,19 @@ // Author: David Elliott // Modified by: // Created: 2003/02/15 -// RCS-ID: $Id: +// RCS-ID: $Id: // Copyright: (c) 2003 David Elliott -// Licence: wxWindows license +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_RADIOBOX + #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/radiobox.h" + #include "wx/arrstr.h" #endif //WX_PRECOMP #import @@ -22,6 +26,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, @@ -72,12 +91,16 @@ void wxRadioBox::SetString(int n, const wxString& label) } // change the individual radio button state -void wxRadioBox::Enable(int n, bool enable) +bool wxRadioBox::Enable(int n, bool enable) { + // TODO + return false; } -void wxRadioBox::Show(int n, bool show) +bool wxRadioBox::Show(int n, bool show) { + // TODO + return false; } // layout parameters @@ -91,3 +114,10 @@ int wxRadioBox::GetRowCount() const return 0; } +wxSize wxRadioBox::DoGetBestSize() const +{ + return wxSize(50,50); +} + +#endif +