LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color in string boxes

Solved!
Go to solution

@Mocte117 wrote:

I tried it but it doesn't work properly. Do you know what could be causing this problem? The solution I put previously also stopped working.


 

I cannot debug pictures. Also define vague terms such as "stopped working". You can define the default start color for all list boxes before the main code.

 

0 Kudos
Message 11 of 14
(159 Views)

You are right, sorry. I am attaching the VI with its files. Regarding my comment "it stopped working" I am trying to say that, at first when executing the VI, it did respect the color of some values, but in the second execution it no longer respected it, I am sure it was because I did not have many items in the file, so please ignore my comment.

0 Kudos
Message 12 of 14
(155 Views)

An active row of -2 means all rows. If you want to give each item a default color based on item name, you need to iterate over all elements using an inner FOR loop.

0 Kudos
Message 13 of 14
(148 Views)
Solution
Accepted by topic author Mocte117

See if this can give you some ideas....

 

altenbach_0-1731090871324.png

 

If you want different default colors for each possible item, I would implement a lookup table.

 

0 Kudos
Message 14 of 14
(140 Views)