06-21-2022 04:18 AM
Hello,
is there a way to change background color in array of string by using property node?
Thanks.
06-21-2022 06:46 AM - edited 06-21-2022 06:49 AM
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?)
06-21-2022 07:03 AM
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.
Thanks
06-21-2022 09:16 AM
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.
06-21-2022 09:32 AM
On the front panel, right-click on the array element.
Select: Create -> Property Node -> Text -> Text Colors -> BG Color
06-21-2022 09:33 AM
@FireFist-Redhawk wrote:
Did you Rube-Goldberg that as a gag?
06-21-2022 09:46 AM
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.
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.