From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

table button set visible

Solved!
Go to solution

Hello, I'm trying to change the visibility / dimmness of a cell button inside a table.  From what I could gather, this was the proper method:

 

SetTableCellRangeAttribute(panel,table,VAL_TABLE_COLUMN_RANGE(column),ATTR_DIMMED,TRUE);

 But I get a NFRTE: "The attribute passed is not valid"

 

How would I go about doing this?

0 Kudos
Message 1 of 3
(3,268 Views)
Solution
Accepted by topic author ElectroLund

Hello ElectroLund,

 

You need to use ATTR_CELL_DIMMED instead of ATTR_DIMMED in the call of SetTableCellRangeAttribute()

If you use the function panel it is easier to get the right parameters

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

Thanks!  Yeah, I need to start using the FP more.  I'm not in the habit...

0 Kudos
Message 3 of 3
(3,241 Views)