The default state for the first radio button in a group should be selected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-08-20 17:44:37 +00:00
parent 283ed244ad
commit bd8e6e3742

View File

@@ -71,6 +71,9 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID winid,
[m_cocoaNSView release];
[GetNSButton() setButtonType: NSRadioButton];
[GetNSButton() setTitle:wxNSStringWithWxString(label)];
// If it's the first in a group, it should be selected
if(style&wxRB_GROUP)
[GetNSButton() setState: NSOnState];
[GetNSControl() sizeToFit];
if(m_parent)