Problem datepick on ribbonbar

Problem datepick on ribbonbar

Postby Silvio.Falconi » Tue May 08, 2018 8:38 am

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 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

 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem datepick on ribbonbar

Postby Armando » Tue May 08, 2018 4:11 pm

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
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3177
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Problem datepick on ribbonbar

Postby Silvio.Falconi » Tue May 08, 2018 5:09 pm

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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