FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem datepick on ribbonbar
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem datepick on ribbonbar
Posted: Tue May 08, 2018 08:38 AM


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 (fw): Select all Collapse
@ 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 March-April 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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problem datepick on ribbonbar
Posted: Tue May 08, 2018 04: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem datepick on ribbonbar
Posted: Tue May 08, 2018 05: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 March-April 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

Continue the discussion