Merged trunk 47951:
Select the first choice in the radiobox upon creation for parity with other ports. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user