]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboB...
authorRobert Roebling <robert@roebling.de>
Sun, 15 Aug 2010 16:16:22 +0000 (16:16 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 15 Aug 2010 16:16:22 +0000 (16:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/combobox.cpp

index 69c1373dde8c9ac096f4ba53a93f8184524d8ea3..fe74ecbd95c4831f84e7f2c3319ce46f085ccbab 100644 (file)
@@ -352,11 +352,19 @@ void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event)
 
 void wxComboBox::Popup()
 {
 
 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) );
 }
 
 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
 }
 #endif // wxUSE_COMBOBOX