X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/548dd93d7d567ce72d277ab595c02c3a1b58fabc..a6fc611aa1fe1b5880e9e5489c5b5b3a25d61be9:/src/cocoa/radiobox.mm?ds=sidebyside diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index 397829a6fd..ff0626e5c5 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -9,8 +9,11 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#include "wx/app.h" -#include "wx/radiobox.h" +#include "wx/wxprec.h" +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/radiobox.h" +#endif //WX_PRECOMP #import @@ -30,17 +33,17 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,validator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]); + SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); + return true; } wxRadioBox::~wxRadioBox() { - CocoaRemoveFromParent(); - SetNSView(NULL); } // selection