]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/pickerbase.cpp
Correct names of some event binders
[wxWidgets.git] / src / common / pickerbase.cpp
index db435a8ecab69e7f9bfb1469b8db040f6c6409c2..f02542619313d0b9861249c806bd9cef22ef708b 100644 (file)
@@ -59,8 +59,7 @@ bool wxPickerBase::CreateBase(wxWindow *parent,
                          const wxSize& size,
                          long style,
                          const wxValidator& validator,
-                         const wxString& name,
-                         long textstyle)
+                         const wxString& name)
 {
     // remove any border style from our style as wxPickerBase's window must be
     // invisible (user styles must be set on the textctrl or the platform-dependent picker)
@@ -78,7 +77,7 @@ bool wxPickerBase::CreateBase(wxWindow *parent,
         //       the styles related to the textctrl from the styles passed here
         m_text = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
                                 wxDefaultPosition, wxDefaultSize,
-                                GetTextCtrlStyle(style) | textstyle);
+                                GetTextCtrlStyle(style));
         if (!m_text)
         {
             wxFAIL_MSG( wxT("wxPickerBase's textctrl creation failed") );
@@ -120,7 +119,7 @@ void wxPickerBase::PostCreation()
     m_sizer->Add(m_picker, HasTextCtrl() ? 0 : 1, GetDefaultPickerCtrlFlag(), 5);
 
     SetSizer(m_sizer);
-    m_sizer->SetSizeHints(this);
+    SetMinSize( m_sizer->GetMinSize() );
 }
 
 void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent &)