In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

OnKeyDown not work

Xailer English public forum
Responder
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

OnKeyDown not work

Mensaje por Srdjan »

METHOD FormKeyDown( oSender, nKey, nFlags ) CLASS EditObjectData
IF nKey == 9
IF ::cActiveBrw == "1"
::oBrw2:SetFocus()
::cActiveBrw := "2"
ELSEIF ::cActiveBrw == "2"
::oBrw3:SetFocus()
::cActiveBrw := "3"
ELSE
::oBrw1:SetFocus()
::cActiveBrw := "1"
ENDIF
ENDIF
RETURN Nil
I have 3 TDbfBrowse and 5 buttons on form. Why this method not work ? when I
press TAB focused button not browse !?
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

OnKeyDown not work

Mensaje por Srdjan »

My mistake I set lTabStop with .F. :(
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:[email=44d62379@news.xailer.com...]44d62379@news.xailer.com...[/email]
> METHOD FormKeyDown( oSender, nKey, nFlags ) CLASS EditObjectData
> IF nKey == 9
> IF ::cActiveBrw == "1"
> ::oBrw2:SetFocus()
> ::cActiveBrw := "2"
> ELSEIF ::cActiveBrw == "2"
> ::oBrw3:SetFocus()
> ::cActiveBrw := "3"
> ELSE
> ::oBrw1:SetFocus()
> ::cActiveBrw := "1"
> ENDIF
> ENDIF
> RETURN Nil
>
> I have 3 TDbfBrowse and 5 buttons on form. Why this method not work ? when
I
> press TAB focused button not browse !?
>
>
Responder