projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94a2af7
)
Select the first choice in the radiobox upon creation for parity with other ports.
author
David Elliott
<dfe@tgwbd.org>
Wed, 8 Aug 2007 03:17:36 +0000
(
03:17
+0000)
committer
David Elliott
<dfe@tgwbd.org>
Wed, 8 Aug 2007 03:17:36 +0000
(
03:17
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47951
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/cocoa/radiobox.mm
patch
|
blob
|
blame
|
history
diff --git
a/src/cocoa/radiobox.mm
b/src/cocoa/radiobox.mm
index 5ee7d005867faf920630c1007dec4ddb319be65a..6ce3aa2dd366e8a427808cef97ed03aa7d7c65e6 100644
(file)
--- 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);