04-07-2006 02:02 PM - edited 04-07-2006 02:02 PM
Be careful with your terminology...the Indent Level is very different from the Row of a tree control. In LabVIEW 8.0 the "ActiveItemRowNumber" property was added, that allows you to retrieve the actual row number of a selected tag. In other words, if your tree has 10 tags in it, regardless of their indent level and whether or not items are expanded/collapsed, those 10 tags have row values from 0-9. Imagine the entire tree is expanded, and you click the tags one by one from top to bottom (like a listbox)...the row numbers of those tags would be 0 through 9, respectively. This is very different from the indent level, which indicates for you the number of parents of the current item.
Hope this helps clear things up...keep in mind that the ActiveItemRowNumber is only available in LabVIEW 8.0 and later.
Message Edited by Darren on 04-07-2006 02:03 PM
04-07-2006 03:04 PM
Result: Tags: 201 101 Row: 2
Using the indent function here is what he needs to do.
04-07-2006 04:45 PM
Yes, I am aware of what the customer wanted to do. The primary purpose of my post was to correct the terminology used, in the event that someone else, in the future, searched the forums for "tree" and "row" hoping to find a way to determine row numbers in the tree control. Without my explanatory post, I'm afraid said person might be a little confused by this thread, since the term "row" was being used in place of "column".
04-10-2006 08:02 AM
both answers are helpful. I need the ActiveItemLevel and connect it like it is shown in the picture.
04-13-2006 07:32 AM
04-13-2006 07:33 AM
04-13-2006 09:20 AM
Yes, when we were brainstorming new features for the Tree Control in LV 8.0, the Row Number property was #1 on my list.
08-12-2006 05:20 AM
08-12-2006 05:26 AM
03-09-2007 06:02 AM