LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing color of text in table

Hello,

 

I have LIN traffic table in VI.

I need to change color of line(row) in case that condition is true LIN full frame.

check attachement.

 

Till now i succeed to change only first element.

 

Can somebody advise, how to do this??

 

Thank you.

Milan

Download All
0 Kudos
Message 1 of 11
(2,365 Views)

You need to set the cell(s) to change using property ActiveCell.

Certified LabVIEW Architect
0 Kudos
Message 2 of 11
(2,328 Views)

I set up like in attachment...

But now is everything red, even when condition is not fullfilled.

How to change this...

 

Best regards.

Download All
0 Kudos
Message 3 of 11
(2,285 Views)

When I set up row 0 column -2, then this work, but my table doesn't remember color.

As soon the value goes on second row, it becoms red again...

 

Best regards.

0 Kudos
Message 4 of 11
(2,283 Views)

Your False case is setting the active cell to -2, -2 which means the entire table.

0 Kudos
Message 5 of 11
(2,274 Views)

Attach a VI t display your problem and we can help. It shouldn't be that hard really to set the colors. I'm guessing you are overwriting the property.

Certified LabVIEW Architect
0 Kudos
Message 6 of 11
(2,272 Views)

Hello, 

 

yes overwriting is problem.

Unfortunatelly I am not allowed to place whole VI, and this part of program will not work without rest of the program.

But i placed vi with this property...

Problem: On picture 6 I get first row is green, but when it moves down, it becomes red, picture 7.

 

Best regards.

Download All
0 Kudos
Message 7 of 11
(2,233 Views)

In your VI, you are always setting color on row 0. 

 

Try the attached VI. That should help you.

Certified LabVIEW Architect
0 Kudos
Message 8 of 11
(2,224 Views)

what, where did my VI go, and why does it look like I attached your VIs? 

lets try again...

Certified LabVIEW Architect
0 Kudos
Message 9 of 11
(2,222 Views)

If you add or delete rows to the table you need to re-assign the colors for the cells. Color assignments are locked to the exact cell, not the row/column itself. So if you add a row at the top, all of the color assignments will be off by one.

 

I have attached some code that I wrote for working with tables that contain colors. I think I grabbed everything. Let me know if I missed any VIs.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 10 of 11
(2,200 Views)