Hi Garth,
You can use the SetActiveCtrl (panel, control); function to change the focus from the NumEdit control to another control. The only drawback I see is that you need to know in advance which control will get the focus after the user presses enter in the NumEdit control.
This is the callback I used for the NumEdit control:
int CVICALLBACK numedit (int panel,int control,int event,void *callbackData,int eventData1,int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
SetActiveCtrl (panel, SOME_OTHER_CONTROL);
break;
}
return 0;
}
Note that when the user presses enter on the NumEdit control (and the value has changed), an EVENT_COMMIT gets generated.
Regards,
Azucena
NI