I insert two datepick control with 4 button +/- for add/minus the date
when I click on these buttons it refresh the datepick but all is too slowly
why ?
the code
- Code: Select all Expand view
@ 0.9,12 DTPICKER oDate1 VAR dDataIniziale OF oGr1 SIZE 120,25 VALID dDataIniziale<=dDataFinale UPDATE
@ 0.9,35 DTPICKER oDate2 VAR dDataFinale OF oGr1 SIZE 120,25 VALID dDataIniziale<=dDataFinale UPDATE
@ 45,75 ADD BUTTON oBtn[2] PROMPT "+" ;
GROUP oGr1 ROUND ROUNDSIZE 6 SIZE 50,20 ;
ACTION ( dDataIniziale++,oDate1:REFRESH()) BORDER
@ 45,140 ADD BUTTON oBtn[3] PROMPT "-" ;
GROUP oGr1 ROUND ROUNDSIZE 6 SIZE 50,20 ;
ACTION ( dDataIniziale--,oDate1:REFRESH()) BORDER
@ 45,210 ADD BUTTON oBtn[4] PROMPT "+" ;
GROUP oGr1 ROUND ROUNDSIZE 6 SIZE 50,20 ;
ACTION ( dDataFinale++,oDate2:REFRESH()) BORDER
@ 45,280 ADD BUTTON oBtn[5] PROMPT "-" ;
GROUP oGr1 ROUND ROUNDSIZE 6 SIZE 50,20 ;
ACTION ( dDataFinale--,oDate2:REFRESH()) BORDER