LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulty in changing the background color of List box

Hello all,

               I am not able to change the background color of list box pragmatically but manually it is changing. Don't know what is going wrong.

 

Attaching VI for reference.

 

Thanks 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 1 of 5
(3,501 Views)

You need to expand the node to include the property "Active Row", and wire an input to that to change the CellBG colour.

---
CLA
0 Kudos
Message 2 of 5
(3,497 Views)

See carefully it is that only, if not change the VI.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 5
(3,489 Views)

If the Active Row property is set anywhere previously in the VI, even in a previous run, you'll be able to change the colour of that cell using CellBG on execution of the code. If you want to change the colour of a specific row, you have to declare which row you're trying to change. If you want to change the background of all the cells programmatically, you'll have to do something like the following:

 

colour3.png

---
CLA
Message 4 of 5
(3,481 Views)

Thanks it works fine. That means when all the active sensor is same color then only it will change the background color.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 5
(3,474 Views)