Hello. I would like to create an a list for a tree
When you click on "2018-01-23"
(Start XXXX XXXX 2018)
When you click on "XXXX"
(Start XXXX XXXX)
e.t.c.
How to do it
Hello, I have to say that I didn't quite understand your desire. You can get notified when the current selection was changed using OnSelChanged (http://www.opendcl.com/HelpFiles/DEU/Reference/Event/SelChanged-Key.htm) event. Or you react on OnClicked (http://www.opendcl.com/HelpFiles/DEU/Reference/Event/Clicked.htm)-event. Use the GetNextSiblingItem or the GetPrevSiblingItem method to get sibling nodes or GetParentItem to retreive the parent node.
Regards, Fred
Hi, in addition to my first answer and in relation to your topic name use GetFirstChildItem method to get the first child node of an item. Regards, Fred
Exactly the reverse of this function (GetFirstChildItem)
Hello, if you mean something like "GetLastChild" you have to iterate all nextsiblings of a level unless you're keeping a list of all nodes in a list or blackboard.
Regards, Fred
It think the OP wants a list representing a tree item's nesting level. Using the dcl-Tree-GetParentItem function it should be possible to create a custom function for this purpose.
Thank you for quick reply. everything works