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.

Kevin
  • 13
  • 4
  • Seems bizarre to me that wxWidgets doesn't trigger the event from `SetSelection`. Swing does that kind of thing, and it's very useful. – Cam Jackson Nov 30 '11 at 00:35

1 Answers1

0

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

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

Jason
  • 16
  • 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 Apr 13 '10 at 13:54