Re: tracking expanded tree-view nodes
Hello Dmitri,
Thanks for your suggestion, it really helped.
I changed the children-function to use unique integers
to identify nodes and children. I also coded a complete breadth-first
scan
of expanded children to track expanded nodes. Everything
works now, and runs a lot faster too.
I also think it would be VERY nice to have the effect of the default
test-function
documented.
Lawrence
On Thursday, June 17, 2004, at 01:42 AM, Dmitri Ivanov wrote:
> Hello Lawrence,
>
> | I'm displaying a big semantic network using tree-view.
> | After updating that network, the tree-view has to be
> | repainted by retaining expansion for expanded nodes currently
> | expanded by hand-gestures.
> |
> | To record currently these expanded nodes, I'm traversing
> | capi:collection-items to call capi:tree-view-expanded-p.
> | This works as long as the print-function prints out
> | the node names unchanged. But when print-function displays
> | strings different from underlying unique nodes names fed to
> | the children-function, tree-view-expanded-p can't
> | find the node names.
> |
> | Is there any way to get a list of expanded nodes
> | in terms of their underlying children-function names?
> | For a big network retention of expanded nodes is important.
>
> Have you supplied the test-function? Personally, I would not recommend
> using
> strings as tree-view items, but "more meaningful" atoms accompanied by
> a
> print-function instead.
>
> BTW, it would be nice having the default test-function for various
> capi:collection
> subclasses documented :-(.
> --
> Sincerely,
> Dmitri Ivanov
> lisp.ystok.ru
>