From: Johan V. <jvr...@sq...> - 2005-09-06 09:20:22
|
Hi, To create a wxComboBox, one of the arguments is an array ref holding the list of items for the ComboBox. I assume these items are copied to internal structures. I have a particular ComboBox with a big list (around 1000 entries). So far no problem. However, for one of my maintenance screens I create a wxFlexGridSizer with around a houndred of these ComboBoxes. Setting up the grid is too slow -- it takes several seconds, and I assume the memory consumption will be high as well. Is there an elegant solution for this problem? It is okay for all ComboBoxes to physically share the list of choices, but can that be achieved? On a side note: in this ComboBox, choices are made by entering keywords so it is usually not necessary at all to display (pop-up) the complete list. I'm currently considering to use an ordinary wxTextCtrl and intercept a key (e.g., '?') to pop up a dialog to choose from. But maybe there are better/other alternatives. -- Johan |