]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
more Unicode fixes
[wxWidgets.git] / src / cocoa / radiobox.mm
index db1e609dcaa7025dd045db8a188b151e20ff3c3f..37cffde012cd28d18ab0a1f61480038e8be19f9d 100644 (file)
@@ -30,10 +30,12 @@ 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;
 }