Procedure CerrPunt11()
tDlg013:End()
@140*ProporV,200*ProporH SAY tDlg013 VAR LocaText(185,4) OF oDlgwVen PIXEL COLOR escri3, fondo3 FONT oFont SIZE 365*ProporH,xProPorV*ProPorV CENTER BORDER
oDlgwVe3:Hide()
oDlgwVe3:Destroy()
CreaVen3(510,500)
xIniBot = (xLar - 150) / 2
@ 10*ProporV, 10*ProporH SAY tDlg060 VAR LocaText(189,7) OF oDlgwVe3 PIXEL COLOR escri1, fondo1 FONT oFon02 SIZE 480*ProporH,2.5*xProPorV*ProPorV CENTER
@ 60*ProporV, 10*ProporH SAY tDlg061 VAR LocaText(190,5) OF oDlgwVe3 PIXEL COLOR escri1, fondo1 FONT oFon02 SIZE 300*ProporH,2.5*xProPorV*ProPorV
@110*ProporV, 10*ProporH SAY tDlg062 VAR LocaText(190,6) OF oDlgwVe3 PIXEL COLOR escri1, fondo1 FONT oFon02 SIZE 300*ProporH,2.5*xProPorV*ProPorV
@160*ProporV, 10*ProporH SAY tDlg063 VAR LocaText(190,7) OF oDlgwVe3 PIXEL COLOR escri1, fondo1 FONT oFon02 SIZE 300*ProporH,2.5*xProPorV*ProPorV
@ 60*ProporV,220*ProporH SAY gDlg060 VAR totvent OF oDlgwVe3 PIXEL COLOR escri3, fondo3 FONT oFon02 SIZE 267*ProporH,2.5*xProPorV*ProPorV CENTER BORDER PICT xpicpre
@160*ProporV,220*ProporH SAY gDlg061 VAR devvent OF oDlgwVe3 PIXEL COLOR fondo3, escri3 FONT oFon02 SIZE 267*ProporH,2.5*xProPorV*ProPorV CENTER BORDER PICT xpicpre
@110*ProporV,220*ProporH GET gDlg062 VAR entvent OF oDlgwVe3 PIXEL COLOR escri2, fondo2 FONT oFon02 SIZE 267*ProporH,2.5*xProPorV*ProPorV CENTER NOBORDER PICT xpicpre valid CerrPunt111()
@220*ProPorV,110*ProPorH BUTTON xPul60 PROMPT LocaText(103,1) OF oDlgwVe3 PIXEL SIZE 140*ProPorH,40*ProPorV FONT oFon02 ACTION CerrPunt112()
@220*ProPorV,260*ProPorH BUTTON xPul61 PROMPT LocaText(190,8) OF oDlgwVe3 PIXEL SIZE 140*ProPorH,40*ProPorV FONT oFon02 ACTION CerrPunt101()
@270*ProPorV,175*ProPorH BUTTON xPul62 PROMPT "&1" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(1)
@270*ProPorV,235*ProPorH BUTTON xPul63 PROMPT "&2" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(2)
@270*ProPorV,295*ProPorH BUTTON xPul64 PROMPT "&3" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(3)
@330*ProPorV,175*ProPorH BUTTON xPul65 PROMPT "&4" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(4)
@330*ProPorV,235*ProPorH BUTTON xPul66 PROMPT "&5" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(5)
@330*ProPorV,295*ProPorH BUTTON xPul67 PROMPT "&6" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(6)
@390*ProPorV,175*ProPorH BUTTON xPul68 PROMPT "&7" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(7)
@390*ProPorV,235*ProPorH BUTTON xPul69 PROMPT "&8" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(8)
@390*ProPorV,295*ProPorH BUTTON xPul70 PROMPT "&9" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(9)
@450*ProPorV,175*ProPorH BUTTON xPul71 PROMPT "&0" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(0)
@450*ProPorV,235*ProPorH BUTTON xPul72 PROMPT "&." OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(10)
@450*ProPorV,295*ProPorH BUTTON xPul73 PROMPT "Bor" OF oDlgwVe3 PIXEL SIZE 50*ProPorH,50*ProPorV FONT oFon02 ACTION Bot5Punt(11)
gDlg062:SetFocus()
RETURN( NIL )
Procedure Bot5Punt(xOpc)
xOp = gDlg062:nPos()
if xOpc = 11
xOpc = 0
do case
case xOp = 1
entvent = xOpc
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(10)}
gDlg062:SetFocus()
case xOp = 12
xentvent = val(substr(str(entvent,12,2),12,1))
entvent = int(entvent) + (0.1*xOpc) + (xentvent * 0.01)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(11)}
gDlg062:SetFocus()
case xOp = 13
xentventa = val(substr(str(entvent,12,2),11,1))
entvent = int(entvent) + (xentventa * 0.1) + (0.01*xOpc)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(12)}
gDlg062:SetFocus()
otherwise
xentventa = val(substr(str(entvent,12,2),11,2))
entvent = int(entvent/10) + (xentventa * 0.01)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(10)}
gDlg062:SetFocus()
endcase
else
if xOpc <> 10
if xOp = 1
entvent = xOpc
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(10)}
gDlg062:SetFocus()
else
if xOp > 10
if xOp = 11
xentvent = val(substr(str(entvent,12,2),12,1))
entvent = int(entvent) + (0.1*xOpc) + (xentvent * 0.01)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(12)}
gDlg062:SetFocus()
else
xentventa = val(substr(str(entvent,12,2),11,1))
entvent = int(entvent) + (xentventa * 0.1) + (0.01*xOpc)
CerrPunt111()
gDlg062:Refresh()
xPul60:SetFocus()
endif
else
if entvent * 10 > 999999999
entvent = int(entvent) + (0.1*xOpc)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(12)}
gDlg062:SetFocus()
else
xentvent = val(substr(str(entvent,12,2),11,2))
entvent = (int(entvent) * 10) + xOpc + (xentvent * 0.01)
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(10)}
gDlg062:SetFocus()
endif
endif
endif
else
CerrPunt111()
gDlg062:bGotFocus = {| | gDlg062:SetPos(11)}
gDlg062:SetFocus()
endif
endif
RETURN (NIL)
Procedure CerrPunt111()
devvent = (totvent - entvent) * (-1)
gDlg061:Refresh()
RETURN( .T. )