/////////////////////////////////////////////////////////////////////////////
// Name: src/univ/combobox.cpp
-// Purpose: wxComboControl and wxComboBox implementation
+// Purpose: wxComboBox implementation
// Author: Vadim Zeitlin
// Modified by:
// Created: 15.12.00
{
public:
// ctor and dtor
- wxComboListBox(wxComboControlBase *combo);
+ wxComboListBox();
virtual ~wxComboListBox();
// implement wxComboPopup methods
// wxComboListBox
// ----------------------------------------------------------------------------
-wxComboListBox::wxComboListBox(wxComboControlBase *combo)
- : wxListBox(),
- wxComboPopup(combo)
+wxComboListBox::wxComboListBox() : wxListBox(), wxComboPopup()
{
}
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()
return false;
}
- wxComboListBox *combolbox = new wxComboListBox(this);
+ wxComboListBox *combolbox = new wxComboListBox();
SetPopupControl(combolbox);
m_lbox = combolbox;