LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i Change Text Color in table

How can i change the text color i table, the true becoming GREEN, and the text in Fals becoming RED.
Someone can help me to resolve this problem with a sample, because when i run the program all text becoming green in (TRUE) and than when i chang it to the (fals) all becoming Red.
0 Kudos
Message 1 of 8
(3,904 Views)
If I understood you correctly, you want the color to change red/green depending on the input button.
If you want a particular cell in the table to change color ratrher than the whole table, you need to set the active cell to be the desired cell.
0 Kudos
Message 2 of 8
(3,904 Views)
Try this. Your problem was never setting the specific row.
0 Kudos
Message 3 of 8
(3,904 Views)
Dennis,
Does specifying the constant -2 select the whole row?

Bill F
0 Kudos
Message 4 of 8
(3,904 Views)
Yes. If you right click the Active Cells property and select Help for Active Cell, you'll see the allowed values and what cells they affect. If you had a row header, a -2 would change that as well.
0 Kudos
Message 5 of 8
(3,904 Views)
Thank you Dennis for replying me
the sample it working, but when I am try to use it like sub vi I can not get the color in main vi.
can you help me with a sample
Thank you
Diallo
0 Kudos
Message 6 of 8
(3,904 Views)
Modifying the properties of a control in a subVI do not modify the properties of a different control in the main VI. The data is the only thing passed back from the subVI. To modify the properties of the table in the main, you need to pass a reference to it to the subVI and modify it's properties. I've attached a modified llb that does what you want.
0 Kudos
Message 7 of 8
(3,904 Views)
thank you very much Dennis
The sample it useful for me
thank you very much.
Diallo.
0 Kudos
Message 8 of 8
(3,904 Views)