X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6eae1f7d48196dea9968c8e478f28a4166bd0fe9..cc374a2f2985d8783e13063a7db33c1062ca35c4:/src/mac/carbon/combobox.cpp diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 245bb7acd8..56238d61d6 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -16,10 +16,17 @@ #include "wx/combobox.h" #include "wx/button.h" #include "wx/menu.h" +#include "wx/containr.h" #include "wx/mac/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl) +WX_DELEGATE_TO_CONTROL_CONTAINER(wxComboBox) + +BEGIN_EVENT_TABLE(wxComboBox, wxControl) + WX_EVENT_TABLE_CONTROL_CONTAINER(wxComboBox) +END_EVENT_TABLE() + static int nextPopUpMenuId = 1000 ; @@ -210,6 +217,8 @@ protected: private: wxComboBox *m_cb; + friend class wxComboBox; + DECLARE_EVENT_TABLE() }; @@ -311,12 +320,6 @@ bool wxComboBox::Show(bool show) return true; } -void wxComboBox::SetFocus() -{ - if ( m_text != NULL) - m_text->SetFocus(); -} - void wxComboBox::DelegateTextChanged( const wxString& value ) { SetStringSelection( value ); @@ -327,6 +330,11 @@ void wxComboBox::DelegateChoice( const wxString& value ) SetStringSelection( value ); } +void wxComboBox::Init() +{ + m_container.SetContainerWindow(this); +} + bool wxComboBox::Create(wxWindow *parent, wxWindowID id, const wxString& value,