From e051d008eb8991b520fcddcffadeefbc39e42681 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 May 2006 20:30:43 +0000 Subject: [PATCH] wxUniv compilation fixes after wxComboControl patch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/combobox.cpp | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index b884e8482d..bda0e3e9fb 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -54,7 +54,7 @@ class wxComboListBox : public wxListBox, public wxComboPopup { public: // ctor and dtor - wxComboListBox(wxComboControlBase *combo); + wxComboListBox(); virtual ~wxComboListBox(); // implement wxComboPopup methods @@ -100,9 +100,7 @@ IMPLEMENT_DYNAMIC_CLASS2(wxComboBox, wxControl, wxComboControl) // wxComboListBox // ---------------------------------------------------------------------------- -wxComboListBox::wxComboListBox(wxComboControlBase *combo) - : wxListBox(), - wxComboPopup(combo) +wxComboListBox::wxComboListBox() : wxListBox(), wxComboPopup() { } @@ -136,25 +134,6 @@ void wxComboListBox::SetStringValue(const wxString& value) wxListBox::SetStringSelection(value); else wxListBox::SetSelection(-1); - - /* - // PRE-GLOBAL WXCOMBOCONTROL CODE: - - // FindItem() would just find the current item for an empty string (it - // always matches), but we want to show the first one in such case - if ( value.empty() ) - { - if ( GetCount() > 0 ) - { - wxListBox::SetSelection(0); - } - //else: empty listbox - nothing to do - } - else if ( !FindItem(value) ) - { - // no match att all - } - */ } void wxComboListBox::OnPopup() @@ -259,7 +238,7 @@ bool wxComboBox::Create(wxWindow *parent, return false; } - wxComboListBox *combolbox = new wxComboListBox(this); + wxComboListBox *combolbox = new wxComboListBox(); SetPopupControl(combolbox); m_lbox = combolbox; -- 2.47.2