FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para CA-Clipper Problemas con SetFocus()
Posts: 112
Joined: Thu Aug 17, 2006 04:13 PM
Problemas con SetFocus()
Posted: Wed Nov 08, 2006 12:07 AM

Hola amigos del foro

Tengo el siguiente problema, tengo un dialogo con 10 controles, entre gets y buttons.

define dialog...
redefine get oget[1] var odbf:cuenta ....
redefine get oget[1] var odbf:nombre ....
redefine get oget[1] var odbf:dh ....
redefine get oget[1] var odbf:importe ....
redefine button oBtn[1] action grabar()
redefine button oBtn[1] action oDlg:end()
activate dialog...
lo que quiero es que al presionar el boton de grabar el cursor vaya al get1, he usado el oget[1]:setfocus, pero pasa el foco al boton de salir...
Que puedo hacer? Quisiera saber en que numero de control me encuentro para hacer oDlg:aControls[numero]:Setfocus()...

Ayuda por favor...

Salu2

CiberSoft - Sistemas de Gestion
Posts: 610
Joined: Wed Oct 19, 2005 08:20 PM
Problemas con SetFocus()
Posted: Wed Nov 08, 2006 09:11 PM

Prueba esto:

oBtn[1]:oJump:=oGet[1]

Saludos,
Manuel

Un saludo,

Manuel



xH 1.2.3, FWH 23.07 32 bits, BC++ 7.4, xVerce CW 1.0, PellesC
Posts: 112
Joined: Thu Aug 17, 2006 04:13 PM
Problemas con Setfocus()
Posted: Thu Nov 09, 2006 12:19 AM

Amigo Manuel

Mi fw es 2.0 y no se si se podrá, en caso no se pueda.
Otra alternativa?

Salu2

CiberSoft - Sistemas de Gestion

Continue the discussion