views:

76

answers:

1

As per the title, is there any way to programatically change the selected item in a ComboBox and have it raise an event?

I am setting the selected item using myComboBox.SetSelection(index), but this doesn't raise the wx.EVT_COMBOBOX event.

A: 

I use C++ version of wxWidget. Look up documentation on these two functions:

void wxPostEvent(wxEvtHandler *dest, wxEvent& event) void AddPendingEvent(wxEvent& event)

Jason
I was hoping there'd be a function I could call (I believe there's one for WinForms using C#), but wx.PostEvent works fine. Thanks for the poinetr!
Kevin