LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Set value of a checkbox in a column of a tree control

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(4,893 Views)
Solution
Accepted by topic author Bertrand_ENAC

Hi Bertrand, this discussion should help you in this task.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(4,883 Views)

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)

 

 

Message 3 of 4
(4,852 Views)

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

0 Kudos
Message 4 of 4
(4,832 Views)