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.

onExit event, next control

Xailer English public forum
Responder
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

onExit event, next control

Mensaje por Roberto »

Hi,
After onExit event I whould like to set the focus to another control that is
not the oNextClt passed to the onExit event... (sorry my English!) Is it
possible?
Tks,
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

onExit event, next control

Mensaje por Roberto »

setFocus(.T.) does not work!
It could be easy if I could change the oNextCtl to the control I would like
to get the focus! :o(
"Roberto" <roberto@top2.com.br> wrote in message
news:[email=45ac274d@news.xailer.com...]45ac274d@news.xailer.com...[/email]
> Hi,
>
> After onExit event I whould like to set the focus to another control that
> is not the oNextClt passed to the onExit event... (sorry my English!) Is
> it possible?
>
> Tks,
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

onExit event, next control

Mensaje por ignacio »

Roberto,
No, is not possible. You can not change the focus inside a event is
triggered when the focus is changed. Your only chance to do that is perform
a postmessage, but be aware that does not work all times, and in some
circunstances it will be erratic, for example, the focus on one control and
the Hi-Beam in another.
Test with this: oTargetControl:PostMsg( WM_SETFOCUS )
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Roberto" <roberto@top2.com.br> escribió en el mensaje
news:[email=45ac274d@news.xailer.com...]45ac274d@news.xailer.com...[/email]
> Hi,
>
> After onExit event I whould like to set the focus to another control that
> is not the oNextClt passed to the onExit event... (sorry my English!) Is
> it possible?
>
> Tks,
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder