Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Labview : Changing color of boolean array, respectively

Tags:

labview

I made this boolean array.

enter image description here

I want change the color of first boolean component as red, and second as blue.

enter image description here

This picture is what I want.

But when I change color property, three booleans change their color with together.

Is there any way to change color of boolean components, respectively?

like image 774
KKS Avatar asked Oct 23 '25 17:10

KKS


1 Answers

Short answer: Just replace the boolean with a color box, as shown in the links in the other reply. It will simply be an array of color boxes instead of an array of booleans.

Long answer: An Array control contains an inner element control. The only property that can differ between elements of the array is the Value property. All other properties are rendered identically across elements of the array. If you need to differentiate the elements based on something other than the Value, you need to either use a different control that renders the graphical aspect that you want as its Value (i.e. replacing the Boolean with a Color Box) or you need to break out the N elements that you want to display as N separate independent controls and manage the updating of the display by yourself through code on the block diagram. This generally means creating your own scrollbar control or numeric control for controlling the index of the array.

like image 147
Yair Avatar answered Oct 27 '25 01:10

Yair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!