LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access one specific control property inside an array of clusters

Solved!
Go to solution

I have an array of clusters. The cluster is an integer and three strings. I need to be able to change the background color of the third string in just one row of the array. I don't think it's possible, is it? I've been trying but I don't see a way to do it. Thanks in advance.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 10
(4,818 Views)

It's not possible.  You cannot change VI Server properties of an individual element within an array.  If you change a VI Server property for something inside an array, it is applied to all array elements.

0 Kudos
Message 2 of 10
(4,813 Views)
Solution
Accepted by topic author PaulG.

Aggreed!

 

Convert to a cluster of clusters or add a color box behind the string after setting its background transparent.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 10
(4,809 Views)

As a simple workaround, add a flat colorbox as an additional array element and make the respective indicator transparent. Now simply write a new color to the colorbox of the desired array element.

 

Array elements are not allowed to vary in properties, but for a colorbox, the color is the value, which is fine. 😉

 

Here is a simple example (posted here long ago). See if it makes sense. 🙂

Message 4 of 10
(4,805 Views)

Nothing better.

 

Seems that all the big ones are active this evening ...  😉

Chilly Charly    (aka CC)
0 Kudos
Message 5 of 10
(4,791 Views)

@chilly charly wrote:

Nothing better.

 

Seems that all the big ones are active this evening ...  😉


Silly Frog!

 

Snapping at the low-hanging fruit while code is syncronizing with the server is standard practice while in the office.

 

It is nice to see your very anoying avatar jjmping up now and then.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 10
(4,783 Views)

Yes, without that silly searching for links and examples, I probably would have beaten Ben by a few seconds. 😮 😄

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

 


Ben a écrit :
Silly Frog!

 Snapping at the low-hanging fruit while code is syncronizing with the server is standard practice while in the office.

 


Silly bear !

 

Don't look for excuses for wasting your time with trivial matters.

At last it's 10pm here, and my wife should be the only one to complain. In addition, I'm on vacation 

 

Edit : I forgot ; Love you all !!!

 

 

Chilly Charly    (aka CC)
Message 8 of 10
(4,770 Views)

A few big guns came out on this one. I'm humbled. I knew the answer but just felt a little lonely and wanted the attention. Smiley Happy

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 9 of 10
(4,748 Views)

@PaulG. wrote:

A few big guns came out on this one. I'm humbled. I knew the answer but just felt a little lonely and wanted the attention. Smiley Happy


LOL! Smiley Very Happy

0 Kudos
Message 10 of 10
(4,735 Views)