Setpos in get with picture

Post Reply
User avatar
ctoas
Posts: 103
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Setpos in get with picture

Post by ctoas »

Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code: Select all

@ 144,320 GET oGetCEP VAR cCEP PICTURE "99999-999" OF oDlgCLIENTES2 SIZE 046,012 PIXEL COLORS nRGB(000,000,255) 
oGetCEP:nStyle := nOR( oGetCEP:nStyle, ES_LEFT )
oGetCEP:bGotFocus := { || oGetCEP:SetPos( 0 ) } 
 
Thanks
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Setpos in get with picture

Post by Antonio Linares »

Try it using 1:

oGetCEP:bGotFocus := { || oGetCEP:SetPos( 1 ) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
joseluisysturiz
Posts: 2024
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela
Contact:

Re: Setpos in get with picture

Post by joseluisysturiz »

ctoas wrote:Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code: Select all

@ 144,320 GET oGetCEP VAR cCEP PICTURE "99999-999" OF oDlgCLIENTES2 SIZE 046,012 PIXEL COLORS nRGB(000,000,255) 
oGetCEP:nStyle := nOR( oGetCEP:nStyle, ES_LEFT )
oGetCEP:bGotFocus := { || oGetCEP:SetPos( 0 ) } 
 
Thanks
Probandolo y trabaja bien asi como lo tienes... :shock:

Code: Select all

REDEFINE GET aGet[2] VAR aVar[2] ID 4006 OF oFldx:aDialogs[1] PICTURE oPi:nPi10 UPDATE // NUM.CED.

aGet[2]:bGotFocus := { || aGet[2]:SetPos( 0 ) }
 
Dios no está muerto...

Gracias a mi Dios ante todo!
Post Reply