LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coloring elements in array of clusters

Solved!
Go to solution

Hi,

I have an array of clusters.

My goal is that each element(cluster) in the array will have a different background color.

I tried to use the color property node but it changed the color of  all the clusters(not only of the desired element).

How It can be accomplished ?

(snapshot of the array is attached)

Thanks,

Leonid

0 Kudos
Message 1 of 10
(4,600 Views)

@Leonid Pascar wrote:

 

My goal is that each element(cluster) in the array will have a different background color.

 


That's not possible with arrays. You can use a cluster instead to group the elements and give them individual properties like the background color.

 

 

Christian

0 Kudos
Message 2 of 10
(4,590 Views)

Add an element to your cluster that is a color box, make iit the same size as the cluster and place it behind all other controls, not set the color to what ever you wish.  This is just a field in the cluster and requires no properties so it doent violate the rules of an array.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 10
(4,578 Views)

Hi Paul and thanks for the reply.

I tried your solution.

There was a problem that my controls were not visible after placing them on color box.

Is there a way making the controls visible?

Thanks,

Leonid

0 Kudos
Message 4 of 10
(4,550 Views)
Solution
Accepted by topic author Leonid_Pascar

Select the color box go to the Reorder ( refresh kind of icon or press Ctrl + J ) and select move backward. You are done.

-----

The best solution is the one you find it by yourself
Message 5 of 10
(4,546 Views)

This can also be done by overlapping the array or cluster and the array of color box. Changing the color box value will do the job.

Just an other sollution for the problem..

 

Thanks,

Yogesh

0 Kudos
Message 6 of 10
(4,539 Views)

Hi ,thank for the help.

Leonid

0 Kudos
Message 7 of 10
(4,531 Views)

I would consider making a typedef (possibly strict) for this control if you plan on reusing it throughout the code.  I would avoid using an overlapping set of arrays due to resizing issure and alignment.  I would also make my cluster set to "size to fit and make the color box the largest object in the cluster, this makes it very easy to change the overall array layout on the front panel.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 8 of 10
(4,507 Views)

See also my posts here and here.

 

Message 9 of 10
(4,502 Views)

And for the color blind, there is no visible difference between the yellow and the green!

 

Lynn

Message 10 of 10
(4,486 Views)