LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
dstrandb

Tree Control Property Node for Accessing "Child Text" String Array

Status: New

When adding items to a tree control using the EditTreeItems invoke nodes, the inputs include "Child Tag", "Item Indent", "Child Only?", "Glyph Index", "Child Text", and "Left Cell String" as can be seen in this screenshot.

 

There are property nodes for the tree control for accessing each of these elements, except for the "Child Text", which is an array of strings. It is possible to access this data as outlined in this forum post, but this method is somewhat involved and round about. 

 

I suggest that a property for the Tree class be created to access the Child Text array directly.

David S.
2 Comments
id
Active Participant
Active Participant

This is really necessary when trying to store a tree object's current dataset into an array of clusters defining each item so that you can rebuild it again later. Seems like there ought ot be a tree configuration definition property that you can read and write to define a tree from one data strusture when dealing with large trees.  For some reason, the child text property is writable but not readable directly from property nodes.

Omar_II
Active Participant

 The work around only works if you do not have an empty string element some where in the middle.

At lest could the "Active Cell:String Property" read return an error when you have gone beyond the end of the array.

Omar