#include "wx/wxprec.h"
-#if wxUSE_COMBOBOX
+#if wxUSE_COMBOBOX && wxOSX_USE_CARBON
#include "wx/combobox.h"
m_cb = cb;
}
- void ForwardEnableTextChangedEvents(bool enable)
- {
- EnableTextChangedEvents(enable);
- }
protected:
void OnChar( wxKeyEvent& event )
{
return true ;
}
-#endif // wxUSE_COMBOBOX
+wxTextWidgetImpl* wxComboBox::GetTextPeer() const
+{
+ if (m_text)
+ return m_text->GetTextPeer();
+
+ return NULL;
+}
+
+#endif // wxUSE_COMBOBOX && wxOSX_USE_CARBON