Page 1 of 1

Problem datepick on ribbonbar

Posted: Tue May 08, 2018 8:38 am
by Silvio.Falconi
Image

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




@ 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

 

Re: Problem datepick on ribbonbar

Posted: Tue May 08, 2018 4:11 pm
by Armando
Silvio:

I'm afraid you're trying to reinvent the hot wáter :oops:

If you click on the arrowhead you will be able to see a calendar
where you can choose a new day, new month or New year.

Regards

Re: Problem datepick on ribbonbar

Posted: Tue May 08, 2018 5:09 pm
by Silvio.Falconi
I need it for my oldest beach application I revising , on first button at left I can select from a popup menu :

Today
Tomorrow
after Tomorrow
Current Mounth
Next Mounth
separator
June
July
August
September
separator
refresh the beach

a old application snapshot