FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Setpos in get with picture
Posts: 115
Joined: Wed Oct 26, 2005 02:38 PM
Setpos in get with picture
Posted: Tue Nov 29, 2016 04:41 PM
Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code (fw): Select all Collapse
@ 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Setpos in get with picture
Posted: Tue Nov 29, 2016 05:14 PM

Try it using 1:

oGetCEP:bGotFocus := { || oGetCEP:SetPos( 1 ) }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Setpos in get with picture
Posted: Tue Nov 29, 2016 09:06 PM
ctoas wrote:Good afternoon and forgive my English.

Positioning cursor in get fields using setpos does not work?

Code (fw): Select all Collapse
@ 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... :-)

Code (fw): Select all Collapse
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!

Continue the discussion