X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de0d209531f148e8d4b18149d0a3ca25dbc88075..b18e2046af6c8eaf6e867ba18dd9410dbd7dfcf7:/src/osx/carbon/combobox.cpp diff --git a/src/osx/carbon/combobox.cpp b/src/osx/carbon/combobox.cpp index 53b729485e..79564de842 100644 --- a/src/osx/carbon/combobox.cpp +++ b/src/osx/carbon/combobox.cpp @@ -57,9 +57,12 @@ public: : wxTextCtrl( cb , 1 ) { m_cb = cb; - SetTriggerOnSetValue( false ); } + void ForwardEnableTextChangedEvents(bool enable) + { + EnableTextChangedEvents(enable); + } protected: void OnChar( wxKeyEvent& event ) { @@ -147,6 +150,7 @@ protected: event.Skip(); } + private: wxComboBox *m_cb; @@ -394,6 +398,12 @@ bool wxComboBox::Create(wxWindow *parent, return true; } +void wxComboBox::EnableTextChangedEvents(bool enable) +{ + if ( m_text ) + m_text->ForwardEnableTextChangedEvents(enable); +} + wxString wxComboBox::DoGetValue() const { wxCHECK_MSG( m_text, wxString(), "can't be called for read-only combobox" );