git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12496
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxComboListBox::OnSelect(wxCommandEvent& event)
{
void wxComboListBox::OnSelect(wxCommandEvent& event)
{
- // first let the user code have the event
+ // first update the combo and close the listbox
+ m_combo->OnSelect(event.GetString());
+
+ // next let the user code have the event
// all fields are already filled by the listbox, just change the event
// type and send it to the combo
// all fields are already filled by the listbox, just change the event
// type and send it to the combo
event2.SetEventObject(m_combo);
event2.SetId(m_combo->GetId());
m_combo->ProcessEvent(event2);
event2.SetEventObject(m_combo);
event2.SetId(m_combo->GetId());
m_combo->ProcessEvent(event2);
-
- // next update the combo and close the listbox
- m_combo->OnSelect(event.GetString());
}
void wxComboListBox::OnShow()
}
void wxComboListBox::OnShow()