/////////////////////////////////////////////////////////////////////////////
-// Name: combobox.cpp
+// Name: src/mac/carbon/combobox.cpp
// Purpose: wxComboBox class
// Author: Stefan Csomor
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "combobox.h"
-#endif
-
#include "wx/wxprec.h"
#if wxUSE_COMBOBOX
if (m_cb->GetEventHandler()->ProcessEvent(kevt))
// If the event was handled and not skipped then we're done
return;
-
+
if ( event.GetKeyCode() == WXK_RETURN )
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_cb->GetId());
if (! m_cb->GetEventHandler()->ProcessEvent(event))
event.Skip();
}
-
+
void OnText( wxCommandEvent& event )
{
event.SetEventObject(m_cb);
event.SetId(m_cb->GetId());
if (! m_cb->GetEventHandler()->ProcessEvent(event))
event.Skip();
- }
+ }
private:
wxComboBox *m_cb;
if ( !wxControl::Enable(enable) )
return false;
+ if (m_text)
+ m_text->Enable(enable);
+
return true;
}
SetBestSize(size); // Needed because it is a wxControlWithItems
SetStringSelection(value);
-
+
return true;
}
}
}
-int wxComboBox::FindString(const wxString& s) const
+int wxComboBox::FindString(const wxString& s, bool bCase) const
{
- return m_choice->FindString( s );
+ return m_choice->FindString( s, bCase );
}
wxString wxComboBox::GetString(int n) const