From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programaticly change the header BG color on a multiline listbox

How do I programaticly change the header BG color on a multiline listbox

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 3
(2,990 Views)
Hi,
If you mean the multicolumn listbox then you have to create the its property node on the diagram (right click on the item and select "Create->property node" from pop-up menu). Then you have to select two properties:
"Active Cell"
"Cell Background color".
You can do it by expanding prperty node to 2 rows and right clicking on each row. Then select "Properties" from pop-up menu and the appropriate property.
Then you have to set-up "active cell" to the appropriate coordinates of the column header. (row=-1; column=N or column=-2 if you want to change the colors of all headers).
Now you have to connect the appropriate colorbox or numeric variable to "Cell Background color" property node and run the program.

I've attached the example.

Good luck/

Ole
g Chutko.
Message 2 of 3
(2,990 Views)
Thanks

That was it!

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 3
(2,990 Views)