Speed up filling a wxComboBox Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Elmi
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Thu Mar 12, 2009 3:23 pm
Location: Germany
Contact:

Speed up filling a wxComboBox

Post by Elmi »

Hi,

currently I add elements to a wxComboBox by calling Append(wxString). Now there is a scenario, where >2000 elements are added which is quite slow.

So is there a possibility to do this is a faster way? E.g. by avoiding any updates in the wxComboBox until all calls to Append() have been done?

Thanks
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Speed up filling a wxComboBox

Post by doublemax »

Check the different versions of wxItemContainer::Set():
http://docs.wxwidgets.org/trunk/classwx ... 975778f40d
( wxItemContainer is base class of wxComboBox )
Use the source, Luke!
Post Reply