Lisp HUG Maillist Archive

How to track state of nodes in a tree-view?

Hi,

 

I have a question regarding capi tree-views on Windows (LW 4.3.6)…

 

I would like to be able to update another view in sync with the expansion / collapse of the tree view nodes but cannot find a way to track the state of the tree view.

 

Is it possible to find out which nodes in a capi:tree-view are currently expanded?

Or is there a callback when nodes are expanded/collapsed (other than the action callback when using actions to expand nodes with :action-callback-expand-p t, which is not called when clicking the [+] next to nodes to expand them)?

 

Best regards

 

Dominic Robinson

 

 

RE: How to track state of nodes in a tree-view?

> From: owner-lisp-hug@xanalys.com
[mailto:owner-lisp-hug@xanalys.com]On
> Behalf Of Dominic Robinson

> I have a question regarding capi tree-views on Windows (LW 4.3.6).
> 
> I would like to be able to update another view in sync with the
> expansion / collapse of the tree view nodes but cannot find a
> way to track the state of the tree view.
> 
> Is it possible to find out which nodes in a capi:tree-view are
> currently expanded?

CAPI:TREE-VIEW-EXPANDED-P tells you whether an item is expanded.
You might want to use it in combination with
CAPI:MAP-COLLECTION-ITEMS.
 
> Or is there a callback when nodes are expanded/collapsed
> (other than the action callback when using actions to expand
> nodes with :action-callback-expand-p t, which is not called
> when clicking the [+] next to nodes to expand them)?

I don't think so.



Updated at: 2020-12-10 08:55 UTC