01-19-2011 03:33 PM
Hello,
I coudn' find the function to set/get the value of a checkbox in a column of a tree control.
Thank you for your help
Bertrand
Solved! Go to Solution.
01-19-2011 04:36 PM - edited 01-19-2011 04:37 PM
Hi Bertrand, this discussion should help you in this task.
01-20-2011 11:14 AM
Roberto's link discusses how to retrieve all the checked items in a tree. Before CVI 2009, only tree cells in the first column could contain a checkbox. You can set/get the value of that check box with S(G)etTreeItemAttribute(panel, tree, item, ATTR_MARK_STATE) or S(G)etTreeCellAttribute(panel, tree, item, 0, ATTR_MARK_STATE).
Since CVI 2009, any tree cell can contain a checkbox. You can set/get the value of a checkbox in any tree cell with S(G)etTreeCellAttribute(panel, tree, item, col, ATTR_MARK_STATE)
01-21-2011 10:36 AM
Thank you very munch for your help.
It was not ovbious to me that S(G)etTreeCellAttribute(panel, tree, item, col, ATTR_MARK_STATE) has also to be used for checkboxes in other columns
Bertrand