11-19-2014 04:42 PM
Is there a way to use the ATTR_CELL_FRAME_COLOR attribute on a row of a table control, or on a set of cells within a table? The help for the ATTR_CELL_FRAME_COLOR attribute does mention compatibility with table controls. Yet, I don't seem to get anything when I try to apply.
Here's a mockup of what I'd like to achieve:
Solved! Go to Solution.
11-20-2014 07:08 AM
Hello there, ElectroLund!
The atribute you mentioned, ATTR_CELL_FRAME_COLOR, only applies to a ring/combo box cell pull-down area:
http://zone.ni.com/reference/en-XX/help/370051Y-01/cvi/uiref/cviattrcellframecolor_column/
However, you can accomplish a similar effect by applying these two table cell attributes corresponding for each cell and neighbouring cell:
Note, that you also have to set ATTR_TABLE_MODE to VAL_GRID and enable ATTR_HORIZONTAL_GRID_VISIBLE and ATTR_VERTICAL_GRID_VISIBLE.
You can play around with these attributes in the Edit Table » Edit Cell dialog » Cell Appearance.
Unfortunately, you would have to compute each such custom "row highlight" using your own algorithm, as the CVI table control doesn't have the notion of a row highlight.
I hope this helps!
- Johannes
11-20-2014 08:20 AM
Thanks. Yeah, that's quite labor intensive. I love tables for how much data you can show. But wow, are they laborious!