[wxruby-users] GenericDirCtrl#re_create_tree behaviour
Mathias Bruce
mathias.bruce at gmail.com
Thu Nov 13 20:50:26 EST 2008
Hi
When GenericDirCtrl#re_create_tree is called in order to refresh the
tree with any possible changes made to the file system since it was
loaded, it doesn't re-expand all the tree items that were expanded
prior to calling re_create_tree. I'm working on a solution to note all
open tree items and after re_create_tree manually expand the items
that are still present in the tree.
My question: Is there a nice way that I've overlooked to make it
automagically re-expand previously expanded nodes after recreating the
tree? I'm on my way towards doing it manually, but since the
GenericDirCtrl's TreeCtrl actually re-numbers the items in the tree
during the recreation process, I'll have to do it by matching TreeItem
text strings, and it's starting to feel like a hack (in the ugly
sense).
Thanks in advance, and best regards!
/Mathias
More information about the wxruby-users
mailing list