05-05-2020 01:29 PM
CVI 2019, Win10.
Why does ATTR_CTRL_INDEX not work with Ring controls in Tables? They appear to be rings. They work mostly the same as panel ring controls. But the only way to set or get a Table ring index is to set or read the character string value ( SetTableCellAttribute and GetTableCellAttribute ). In order to get a numeric index, one has to compare text strings.
This is absurdly complicated.
Solved! Go to Solution.
05-06-2020 05:59 AM
The following seems to work for me...
int row=eventData1, col=eventData2;
char tableCellVal[80];
int index;
...
GetTableCellVal(panel,control,MakePoint(col,row),tableCellVal);
GetTableCellRingIndexFromValue(panel, control,0,MakePoint(col,row),&index,tableCellVal);
...
SetTableCellValFromIndex(panel,control,MakePoint(col,row),index);
05-06-2020 08:26 AM