LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[UI] expand/collapse cluster controls

Hi all,

 

I want to show a lot of settings by using cluster controls that can be expanded and collapsed. While my program works, I am wondering if there is a more elegant way to reference sibling clusters in the same pane.

 

Right now, when the control "expand all" is clicked,this is the chain that I use to turn on the visiblity of controls in sibling clusters in the same pane.

 

Capture.PNG

Another problem is that I don't have control of the cluster index. Regardless of "set tabbing order", "settings 2" comes before "settings".

 

Regards, Jin Kai

0 Kudos
Message 1 of 2
(2,416 Views)

Dear Jinkai,

 

I believe I can present a solution for your second (other) problem.

 

change order.png

 

I stripped away the main control panel and reversed the order of the remaining panels. Now, you can also avoid checking for the i>0; that #0-panel is not present in the outher for-loop anymore. Cheers,

 

edit: of course, you have to start with a different than zero vertical position:

position of the first.png

0 Kudos
Message 2 of 2
(2,391 Views)