Mi problema es que cuando entro en una ventana donde edito los datos con GETS no me funcionan las teclas TAB, ENTER para pasar de un campo a otro. el codigo por ejemplo es :
- Code: Select all Expand view RUN
- procedure librmay1()
seleacti (1)
if numact = 0
SaliMenu()
else
SELECT 18
use &ZN SHARED
OrdSetFocus (zna)
go top
if numact = 1000000
go top
else
seek str(numact,6,0)
endif
store finicio to va001
store ffinal to va002
store 0 to va003
store 999999 to va004
store "1 " to va005
store "8 " to va006
store 1 to va007
store zdatita to va008
store 11 to va009
store 1 to opci11,opci13,opci14,OPCI00
opci14 = .T.
opci16 = .F.
opci15 = .F.
opci20 = .F.
USE
CreaVent(230,430)
zIniBot = (zLar - 150) / 2
@ 10*ProporV, 10*ProporH SAY tDlg001 VAR LocaText(150,1) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@ 10*ProporV,150*ProporH SAY tDlg002 VAR LocaText(150,2) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@ 70*ProporV, 10*ProporH SAY tDlg003 VAR LocaText(150,4) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@110*ProporV, 80*ProporH SAY tDlg004 VAR LocaText(150,5) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@110*ProporV,180*ProporH SAY tDlg005 VAR LocaText(150,6) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@110*ProporV,280*ProporH SAY tDlg006 VAR LocaText(150,7) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@130*ProporV, 10*ProporH SAY tDlg007 VAR LocaText(150,8) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@150*ProporV, 10*ProporH SAY tDlg008 VAR LocaText(150,9) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@170*ProporV, 10*ProporH SAY tDlg009 VAR LocaText(245,8) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 200*ProporH,zProPorV*ProPorV
@ 30*ProporV, 10*ProporH RADIO gDlg012 VAR opci00 PROMPT LocaText(136,1), LocaText(137,1) OF oDlgwVen PIXEL COLOR escri01, fondo01 SIZE 75*ProPorH,zProPorV*ProPorV
@ 30*ProporV, 65*ProporH GET gDlg013 VAR va008 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 65*ProporH,zProPorV*ProPorV CENTER
@ 70*ProporV, 89*ProporH GET gDlg003 VAR va007 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 41*ProporH,zProPorV*ProPorV CENTER pict "######"
@ 30*ProporV,150*ProporH RADIO gDlg004 VAR opci13 PROMPT LocaText(226,7), LocaText(226,8), LocaText(226,9), LocaText(227,1) OF oDlgwVen PIXEL COLOR escri01, fondo01 SIZE 75*ProPorH,zProPorV*ProPorV
@ 30*ProporV,245*ProPorH CheckBox gDlg005 VAR opci14 PROMPT LocaText(225,8) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 140*ProPorH,zProPorV*ProPorV
@ 50*ProporV,245*ProPorH CheckBox gDlg006 VAR opci20 PROMPT LocaText(225,9) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 140*ProPorH,zProPorV*ProPorV
@ 70*ProporV,245*ProPorH CheckBox gDlg007 VAR opci16 PROMPT LocaText(152,8) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 160*ProPorH,zProPorV*ProPorV
@130*ProporV, 80*ProporH GET gDlg008 VAR va001 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 65*ProporH,zProPorV*ProPorV CENTER
@150*ProporV, 80*ProporH GET gDlg009 VAR va002 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 65*ProporH,zProPorV*ProPorV CENTER VALID va002 >= va001
@130*ProporV,180*ProporH GET gDlg010 VAR va003 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 41*ProporH,zProPorV*ProPorV CENTER pict "######"
@150*ProporV,180*ProporH GET gDlg011 VAR va004 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 41*ProporH,zProPorV*ProPorV CENTER pict "######" VALID va004 >= va003
@130*ProporV,280*ProporH GET gDlg001 VAR va005 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 71*ProporH,zProPorV*ProPorV CENTER pict "###########" VALID bus2va006 (1)
@150*ProporV,280*ProporH GET gDlg002 VAR va006 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 71*ProporH,zProPorV*ProPorV CENTER pict "###########" VALID bus2va006 (2)
@170*ProporV,180*ProporH GET gDlg014 VAR va009 OF oDlgwVen PIXEL COLOR escri02, fondo02 FONT oFont SIZE 17*ProporH,zProPorV*ProPorV CENTER pict "##" VALID (va009 > 0 .AND. va009 < 6) .OR. va009 = 11
@170*ProporV,210*ProPorH CheckBox gDlg015 VAR opci15 PROMPT LocaText(152,9) OF oDlgwVen PIXEL COLOR escri01, fondo01 FONT oFont SIZE 230*ProPorH,zProPorV*ProPorV
@(zAnc-30)*ProPorV,(zIniBot )*ProPorH BUTTON xPul01 PROMPT LocaText(133,1) OF oDlgwVen PIXEL SIZE 70*ProPorH,20*ProPorV FONT oFont ACTION librmay11()
@(zAnc-30)*ProPorV,(zIniBot+ 80)*ProPorH BUTTON xPul02 PROMPT LocaText(134,1) OF oDlgwVen PIXEL SIZE 70*ProPorH,20*ProPorV FONT oFont ACTION librmay12()
gDlg012:SetFont(oFont)
gDlg004:SetFont(oFont)
gDlg008:SetFocus()
endif
RETURN (NIL)
- Code: Select all Expand view RUN
- PROCEDURE CreaVent(zanc1,zlar1)
zAnc = zAnc1
zLar = zLar1
zVer = int((600 - zanc)/2)
zHor = int((1024 - (zlar*zProPorH))/2)
DEFINE WINDOW oDlgwVen OF oVentPrinc MDICHILD PIXEL FROM zVer*ProPorV,zHor*ProPorH TO (zVer+zAnc)*ProPorV,(zHor+zLar)*ProPorH COLORS escri01, fondo01 STYLE nOr(WS_DLGFRAME)
SET FONT OF oDlgwVen TO oFont
ACTIVATE WINDOW oDlgwVen NORMAL VALID (if (GetKeyState (VK_ESCAPE), .F.,oDlgwVen:End()))
oDlgwVen:Show()
RETURN (.T.)
Un saludo
Carlos