LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

underlying control shows up

I'm sorry, but i dont think you have understood what this posting was about. It is not about not being able to set properties for individual elements in an array, (although that would be nice), but about the fact that the control values cannot be hidden underneath another control. Take a look at the example supplied by Gabs (posted after JRA's answer). It will clearly show the problem. When you have seen this example it would be interesting to see if you think it is a bug or not.

Kim
0 Kudos
Message 11 of 13
(834 Views)
Gabs,

I don't see that the core issue has been addressed here.

Is there a reason you cannot break your controls out of the array of clusters? If you need to set the controls' properties individually, then you need to have that control on its own, or in a cluster, but not in an array. Workarounds to affect the necessary changes are just that, workarounds.

I would suggest that you consider breaking the controls out, if possible. You can always bundle them up again. Another technique you can use is to mirror controls. Since you are using a cluster, you can very easily do this with an "insert into array" and "bundle by name" function.

Additionally, if it were me, I would use a boolean (flat button, old style) to hide/uncover controls, if I had to.
This gives you a single plane object, instead of one with many elements. This may be a factor in the effect you are seeing.
0 Kudos
Message 12 of 13
(834 Views)
Hi,
the reason for this complicated design is simply compatibility to an older version. You are absolutely right, it is not the best programming way. Anyhow, if I hide something, then I want it to stay hidden until a "how up condition" becomes true. You are right that a flat square button is easier to handle than a string control, but the effect is the same, no matter if a string control or a button is used to hide the underlying control. I tried it - clicking in a visible control lets the numbers from the hidden controls appear, also in the case of a button. Only Kims solution works fine.
Regards,
Gabs.
0 Kudos
Message 13 of 13
(834 Views)