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
This commit is contained in:
Robert Roebling
2010-08-15 16:16:22 +00:00
parent 15ec7f782d
commit 26c7026db3

View File

@@ -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