03-01-2013 12:20 PM
I have a tree with two columns.
How to add
label1/value1 to row0,col0;
label2/value2 to row0,col1;
label3/value3 ro row1,col0;
label4/value4 to row1,col1 and so on.
Looking at the tree examples InsertTreeItem() I am only able to add values/labels to col0 one after another.
thanks!
Solved! Go to Solution.
03-01-2013 01:18 PM
Found it, to add to next column use of SetTreeCellAttribute (panelHandle, PANEL_TREE, rowIndex, colIndex, ATTR_LABEL_TEXT, "Label1"); is used. Although I dont see any attribute to add the value to column 1 of the tree.
thanks.
03-04-2013 09:43 AM
Hi ts_2012,
Please note that InsertTreeItem sets the value of the tree item, not of the column. In CVI, columns cannot have values attached.