03-25-2019 06:57 AM
Hello,
In the production we want to enter the serial number in the batch dialog by scanning.
Now we have a problem because if we scan the serial number, it will jump to the "Disable TS FOR NEXT RUN".
I have looked in the CVI code of the 'modelsupport2' but could not find a way to change the 'Tab Position'.
The buttons will be programmatically added but where can I change the 'Tab position'.
gr,
Bart
Solved! Go to Solution.
03-25-2019 07:32 AM
Just found the solution.
Changed the ctrlIndex add by 5.
static int TabToNextTabbableTestSocketCtrl(int childPanel, int startingTestSocketIndex, int startingCtrlIndex, BUUT_PanelData *panelData, int tabbingForward)
{
int testSocketIndex = startingTestSocketIndex;
int ctrlIndex = startingCtrlIndex;
int retval = FALSE;
if(tabbingForward)
{
ctrlIndex=ctrlIndex+5;
if(ctrlIndex == kTSCtrl_NumCtrls)
{
ctrlIndex = 0;
testSocketIndex++;
if(testSocketIndex == panelData->numTestSockets)
goto Error; // Do not wrap!
}
}
else
{
ctrlIndex=ctrlIndex-5;
if(ctrlIndex < 0)
{
ctrlIndex = kTSCtrl_NumCtrls - 1;
testSocketIndex--;
if(testSocketIndex < 0)
goto Error; // Do not wrap!
}
}