From: Tierra <et...@gm...> - 2005-12-02 21:40:27
|
On 12/2/05, Otto Wyss <ott...@or...> wrote: > Whenever the Y-pos is needed as in this case, the positions have to be > calculated since through different actions (adding, deleting, expanding, > etc) any Y-pos might be wrong. So it's best if the all the positions > were just calculated before. In the case of inserting an item this means > the positions are calculated twice but this seems bearable. Position > calculation is now done only before the Y-pos is needed and in OnIdle, > therefore ExpandAll should now be a little faster. I've confirmed that fixes my problem. > I've just tried to expand all with the WindowsExplorer on a 100 > folder/4000file directory and it takes for ages, I had to kill the > explorer. I also tried it with wyoFiler but it neither seems to work. Is > anybody able to profile the wxTreeListCtrl? My usage typically only works with trees with about 50-100 items on average. So I'm not really going to be able to give you useful numbers without writing up test case code. I currently use Compuware DevPartner Profiler (free useful MSVC profiler available) and would recommend it. Regards, Bryan Petty |