LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select disabled item in tree

I'm using a tree to configure different stages in an experiment. Whenever I click on a branch of the tree, using an event structure (on Tree: Value change), I get the current settings of that branch which I can then edit. I want the user to be able to select a branch in the tree and enable or disable that element. I can disable a branch with property nodes with no problem, but once the branch is disabled, I am no longer able to select it and thus I can't enable it again since I can never run the event structure with that branch as the selected branch. Is there a way around this?

Thank you,

Ben
0 Kudos
Message 1 of 3
(2,914 Views)
Hello Ben,

Thank you for your inquiry regarding tree controls. It sounds like once a branch is disabled you cannot enable it again. It might help me to look at some simple code demonstrating the problem but there are a few suggestions that I can make. It seems like you need a control that would allow you to enable the branch on a value change of the control. One possible solution may be to use a LED next to each branch that would allow you to do this and use this value change in the Event Structure to enable the branch again. This could get complicated however and you might want to rethink your approach of controlling the experiment.

I hope these resources help. Let me know if I can further assist you.

Shea C.
Applications Engineering
0 Kudos
Message 2 of 3
(2,914 Views)
Hi,

It seems normal that disabled tree items cannot be selected. Perhaps you can
set the font foreground color and/or background color to make the items look
like they are disabled.

Regards,

Wiebe.

"Ben Luey" wrote in message
news:5065000000080000009EC20000-1077587809000@exchange.ni.com...
> I'm using a tree to configure different stages in an experiment.
> Whenever I click on a branch of the tree, using an event structure (on
> Tree: Value change), I get the current settings of that branch which I
> can then edit. I want the user to be able to select a branch in the
> tree and enable or disable that element. I can disable a branch with
> property nodes with no problem, but once the branch is disabled, I am
> no longer able to select it and thus
I can't enable it again since I
> can never run the event structure with that branch as the selected
> branch. Is there a way around this?
>
> Thank you,
>
> Ben
0 Kudos
Message 3 of 3
(2,914 Views)