X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/525007cf12a3025c2a6ca3c58663062e567c0e25..85b6f1c431640d51535955da7d57383684fc0e27:/src/cocoa/radiobox.mm diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index 5ee7d00586..6ce3aa2dd3 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -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);