You can use the Event_Keypress event in the Table's callback function to catch the Enter key's action and programatically set the Active Table Cell with SetActiveTAbleCell( ).
Here is an example of the callback function.
int CVICALLBACK Table (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event) {
case EVENT_KEYPRESS:
if (eventData1 == VAL_ENTER_VKEY) {
GetActiveTableCell (panelHandle, PANEL_TABLE, &previousCell);
printf("Enter pressed in table!\n");
SetActiveTableCell (panelHandle, PANEL_TABLE,
MakePoint ((previousCell.x + 1), (previousCell.y)));
}
break;
}
return 0;
}
Jason Foster
Measurement Studio Support Engineer
National INstruments
www.ni.com/ask