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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user