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.

Problem with OnExit

Foro público de Xailer en español
Responder
Christian Lauer
Mensajes: 30
Registrado: Lun Jul 18, 2005 12:29 am

Problem with OnExit

Mensaje por Christian Lauer »

Hola a todos,
I used the OnExit event to validate an input variable. As long as there
is no code within the method to handle the event, you can change to
another control. As soon as there is code within the method you can't
leave the edit field anymore:
METHOD editPasswordExit( oSender, oNextCtl ) CLASS formLogin
MsgAlert("Passwort prí¼fen")
// Validate password
RETURN Nil
This will lock the cursor in the edit field editPassword.
Any ideas? Thanks!
Christian
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Problem with OnExit

Mensaje por jfgimenez »

Christian,
> I used the OnExit event to validate an input variable. As long as there
> is no code within the method to handle the event, you can change to
> another control. As soon as there is code within the method you can't
> leave the edit field anymore:
>
> METHOD editPasswordExit( oSender, oNextCtl ) CLASS formLogin
> MsgAlert("Passwort prüfen")
> // Validate password
> RETURN Nil
>
> This will lock the cursor in the edit field editPassword.
This happens because you are showing another window (MsgAlert) from this
event. There was a bug that causes the focus to return to the same control
after closing the new window.
It's fixed in the new beta 9, that we'll publish next monday (if not
before). I've attached the WhatsNew.htm
--
Regards,
Jose F. Gimenez


Attached files WhatsNew9.htm (4.8 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder