this is Fivewin code from my touch screen ECR but it is much the same.
Code: Select all | Expand
@ 40 , 10 GET oGet[1] VAR aVarGet[1] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=1,.t.)
@ 80 , 10 GET oGet[2] VAR aVarGet[2] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=2,.t.)
@ 120 , 10 GET oGet[3] VAR aVarGet[3] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=3,.t.)
@ 160 , 10 GET oGet[4] VAR aVarGet[4] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=4,.t.)
@ 200 , 10 GET oGet[5] VAR aVarGet[5] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=5,.t.)
@ 240 , 10 GET oGet[6] VAR aVarGet[6] of oDlg PIXEL SIZE 80,12 font FntdISPLAY VALID (nGetFocus :=6,.t.)
@ 40, YZHGTASTE SBUTTON oBtn1 PROMPT "1" OF oDlg ACTION ( aVarGet[nGetFocus] := aVarGet[nGetFocus] + "1",;
nRest := nRechungsbetrag - VAL(aVarGet[1]) - VAL(aVarGet[2]) - VAL(aVarGet[3]) - VAL(aVarGet[4]) - VAL(aVarGet[5]) + VAL(aVarGet[6]) ,;
oGet[nGetFocus]:refresh(), oGet[nGetFocus]:SetPos( len(oGet[nGetFocus]) ),;
oRest:refresh(), oGet[nGetFocus]:SetFocus() ) PIXEL SIZE 38, 38 FONT oFntBrowser COLORS CLR_WHITE,RGB(44,72,93) , CLR_WHITE CRYSTAL
@ 40, YZHGTASTE+40 SBUTTON oBtn2 PROMPT "2" OF oDlg ACTION ( aVarGet[nGetFocus]:=aVarGet[nGetFocus] + "2",;
nRest := nRechungsbetrag - VAL(aVarGet[1]) - VAL(aVarGet[2]) - VAL(aVarGet[3]) - VAL(aVarGet[4]) - VAL(aVarGet[5]) + VAL(aVarGet[6]) ,;
oGet[nGetFocus]:refresh(), oGet[nGetFocus]:SetPos( len(oGet[nGetFocus]) ),;
oRest:refresh(), oGet[nGetFocus]:SetFocus() ) PIXEL SIZE 38, 38 FONT oFntBrowser COLORS CLR_WHITE,RGB(44,72,93) , CLR_WHITE CRYSTAL
@ 40, YZHGTASTE+80 SBUTTON oBtn3 PROMPT "3" OF oDlg ACTION ( aVarGet[nGetFocus]:=aVarGet[nGetFocus]+"3",;
nRest := nRechungsbetrag - VAL(aVarGet[1]) - VAL(aVarGet[2]) - VAL(aVarGet[3]) - VAL(aVarGet[4]) - VAL(aVarGet[5]) + VAL(aVarGet[6]) ,;
oGet[nGetFocus]:refresh(), oGet[nGetFocus]:SetPos( len(oGet[nGetFocus]) ),;
oRest:refresh(), oGet[nGetFocus]:SetFocus() ) PIXEL SIZE 38, 38 FONT oFntBrowser COLORS CLR_WHITE,RGB(44,72,93) , CLR_WHITE CRYSTAL