LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot set the ATTR_TEXT_BGCOLOR in SetTableColumnAttribute

Hi,

 

I tried to set the ATTR_TEXT_BGCOLOR for a column of a table by calling:

SetTableColumnAttribute  (panel, TABLE, column_no, ATTR_TEXT_BGCOLOR, VAL_YELLOW);

but it doesn't change the background color to yellow.  However, if I use the SetTableCellAttribute call for every cell in that column then it works.  Is this a "bug" in SetTableColumnAttribute?  BTW, I'm using LabWnidows/CVI Ver 9.1.1 (450).

 

TIA

 

0 Kudos
Message 1 of 2
(2,656 Views)

As you can see here, this is expected behaviour as SetTableColumnAttribute does not affect existing cells. Use SetTableCellRangeAttribute instead.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,653 Views)