11-08-2024 12:10 PM - edited 11-08-2024 12:13 PM
@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.
11-08-2024 12:18 PM
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.
11-08-2024 12:25 PM
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.
11-08-2024 12:34 PM - edited 11-08-2024 12:52 PM
See if this can give you some ideas....
If you want different default colors for each possible item, I would implement a lookup table.