Setpos in get with picture

Setpos in get with picture

Postby ctoas » Tue Nov 29, 2016 4:41 pm

Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code: Select all  Expand view
@ 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
ctoas
 
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil

Re: Setpos in get with picture

Postby Antonio Linares » Tue Nov 29, 2016 5:14 pm

Try it using 1:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Setpos in get with picture

Postby joseluisysturiz » Tue Nov 29, 2016 9:06 pm

ctoas wrote:Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code: Select all  Expand view
@ 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  Expand view

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!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 35 guests