Page 1 of 1

Dtepicker

Posted: Tue Oct 11, 2005 4:16 pm
by Frank Demont
Hello,

When i jump to the pick routine , on returning NO FOCUS OBJECT is visible. I have to press the TAB button to see the next object in focus

It is very confusing and frustrating for a user to see no focus !!!!!

Re: Dtepicker

Posted: Wed Oct 12, 2005 1:47 am
by DanielPuente
Frank:

You must set the focus with :setfocus. Here you have an example with btnget class:

REDEFINE BTNGET oDesde VAR cDesde ID 113 OF oDlg ;
RESOURCE "B_Cld" PICTURE "@D" VALID ValDesde(oBrw,vCodigo,@cDesde,oDesde,@vSaldo,oSaldo) ;
FONT oFont3;
ACTION (aRec :=GetCoors(oDesde:hWnd),;
cDesde:=Calend(cDesde,aRec[1],aRec[4],oDlg),;
oDesde:Refresh(),oDesde:SetFocus())

Regards
Frank Demont wrote:Hello,

When i jump to the pick routine , on returning NO FOCUS OBJECT is visible. I have to press the TAB button to see the next object in focus

It is very confusing and frustrating for a user to see no focus !!!!!