Página 1 de 1

onExit event, next control

Publicado: Mar Ene 16, 2007 2:15 am
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,

onExit event, next control

Publicado: Mar Ene 16, 2007 2:45 am
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,
>
>

onExit event, next control

Publicado: Mar Ene 16, 2007 10:00 am
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,
>
>