]> git.saurik.com Git - wxWidgets.git/commitdiff
Select an item using the value passed to the ctor/Create
authorRobin Dunn <robin@alldunn.com>
Fri, 18 Feb 2005 04:07:11 +0000 (04:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 18 Feb 2005 04:07:11 +0000 (04:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/combobox.cpp

index 7e83e671aad3c67c307385f36ed3c8f04836bf05..535a468371d3c0d1e40a4b0a6a05f841c47bd320 100644 (file)
@@ -359,7 +359,8 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
     }
 
     SetBestSize(size);   // Needed because it is a wxControlWithItems
-
+    SetStringSelection(value);
+    
     return true;
 }