05-15-2012 07:17 AM
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
Solved! Go to Solution.
05-15-2012 08:04 AM
@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
05-15-2012 10:21 AM
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.
05-16-2012 03:40 AM
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
05-16-2012 04:02 AM - edited 05-16-2012 04:03 AM
Select the color box go to the Reorder ( refresh kind of icon or press Ctrl + J ) and select move backward. You are done.
05-16-2012 04:09 AM
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
05-16-2012 04:52 AM
Hi ,thank for the help.
Leonid
05-16-2012 10:14 AM
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.
05-16-2012 10:31 AM
05-16-2012 02:39 PM
And for the color blind, there is no visible difference between the yellow and the green!
Lynn