]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/choice.cpp
fix for get best size when having empty labels
[wxWidgets.git] / src / gtk1 / choice.cpp
index f437527d6c265f1480b603c59861114d2679a0b4..6eef00f62464aaa8624cee8ed764329769eeadde 100644 (file)
@@ -73,6 +73,18 @@ wxChoice::wxChoice()
     m_strings = (wxSortedArrayString *)NULL;
 }
 
+bool wxChoice::Create( wxWindow *parent, wxWindowID id,
+                       const wxPoint &pos, const wxSize &size,
+                       const wxArrayString& choices,
+                       long style, const wxValidator& validator,
+                       const wxString &name )
+{
+    wxCArrayString chs(choices);
+
+    return Create( parent, id, pos, size, chs.GetCount(), chs.GetStrings(),
+                   style, validator, name );
+}
+
 bool wxChoice::Create( wxWindow *parent, wxWindowID id,
                        const wxPoint &pos, const wxSize &size,
                        int n, const wxString choices[],