开发者

Triggering wx.EVT_COMBOBOX after programatically changing ComboBox selection?

开发者 https://www.devze.com 2022-12-26 21:31 出处:网络
As per the title, is there any way to programatically change the selected item in a ComboBox and have it raise an event?

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.SetSe开发者_开发百科lection(index), but this doesn't raise the wx.EVT_COMBOBOX event.


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消