From 26c7026db3bf846af2827df9fb6845013b22661a Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 15 Aug 2010 16:16:22 +0000 Subject: [PATCH 1/1] Make wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboBox not sending popup and dismiss events) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/combobox.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 69c1373dde..fe74ecbd95 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -352,11 +352,19 @@ void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event) void wxComboBox::Popup() { - gtk_combo_box_popup( GTK_COMBO_BOX(m_widget) ); + gtk_combo_box_popup( GTK_COMBO_BOX(m_widget) ); + + wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId() ); + event.SetEventObject( this ); + HandleWindowEvent( event ); } void wxComboBox::Dismiss() { gtk_combo_box_popdown( GTK_COMBO_BOX(m_widget) ); + + wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_CLOSEUP, GetId() ); + event.SetEventObject( this ); + HandleWindowEvent( event ); } #endif // wxUSE_COMBOBOX -- 2.45.2