LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing colour of array background

Hello,

 

is there a way to change background color in array of string by using property node?

 

Thanks.

 

0 Kudos
Message 1 of 7
(1,965 Views)

Array elements share all properties so there can only be one background color (which you can change. of course).

To change the background color for any specific cell individually, you can use a table indicator instead. 

 

(It sometimes helps to be more specific. Are you talking about a 1D, 2D array, etc. Are you talking about the text background or the container background (only really visible if you show the element gap) or something else?)

0 Kudos
Message 2 of 7
(1,941 Views)

Thanks for feedback.

I meant 1D array, to change text background color with property node.

I made mistake by referencing on array instead of element (string).

And eventually, after that, property node offered option to change color of background of string.

milan87_0-1655812959845.png

Thanks

 

0 Kudos
Message 3 of 7
(1,927 Views)

Color Array Control.png

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 4 of 7
(1,903 Views)

On the front panel, right-click on the array element.

Select: Create -> Property Node -> Text -> Text Colors -> BG Color

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 7
(1,894 Views)

@FireFist-Redhawk wrote:

Color Array Control.png


Did you Rube-Goldberg that as a gag?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 6 of 7
(1,891 Views)

Nope, matched their starting point, a reference to the object to be colored. So they can for instance make a SubVI that takes in the reference instead of doing it implicitly as you described.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 7 of 7
(1,885 Views)