]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
add wxSize overloads to wxBitmap ctors and to wxBitmap::Create
[wxWidgets.git] / src / cocoa / radiobox.mm
index 5ee7d005867faf920630c1007dec4ddb319be65a..6ce3aa2dd366e8a427808cef97ed03aa7d7c65e6 100644 (file)
@@ -167,6 +167,11 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
 
     SetMajorDim(majorDim, style);
 
+    // Set the selection to the first item if we have any items.
+    // This is for parity with other wx ports which do the same thing.
+    if(n > 0)
+        SetSelection(0);
+
     if(m_parent)
         m_parent->CocoaAddChild(this);