In a TGet, make the cursor jump one position to thr right
Posted:
Tue Oct 11, 2005 3:54 pm
by Rafael Clemente
Hi everybody
In a TGet(), how can I make the cursor step one position to the right. I have tried oGet:PostMsg( WM_KEYDOWN, VK_RIGHT, 0 ) but it does not seem to work
Any suggestion? Thanks
Rafael
Solved!
Posted:
Tue Oct 11, 2005 4:15 pm
by Rafael Clemente
It was just a matter of adding SysRefresh() !!!
Rafael
Re: Solved!
Posted:
Tue Mar 20, 2007 12:10 pm
by goosfancito
Antonio Linares wrote:Rafael Clemente wrote:It was just a matter of adding SysRefresh() !!!
good
Antonio, este codigo
- Code: Select all Expand view
redefine get odatos[1]...
...
redefine get odatos[10]...
oDatos[1]:bValid:= { || oDatos[1]:SetPos( 10 ), SysRefresh(), .T. }
Cuando valida oDatos[1], salta al get en la posicion 10? aca no me esta funcionado.
Posted:
Tue Mar 20, 2007 12:30 pm
by Antonio Linares
Gustavo,
Si el foco se va a ir a otro control, prueba a hacer:
oGet:nPos := 10
desde el VALID
Posted:
Tue Mar 20, 2007 1:00 pm
by Antonio Linares
Cuando vuelve el foco al Get, el cursor no va a otra posiciĆ³n ?
Cambia tambien oGet:oGet:Pos := 10