FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DATEPICKER
Posts: 179
Joined: Fri Dec 07, 2007 01:26 PM
DATEPICKER
Posted: Mon Feb 26, 2024 10:01 AM

Dear friends,

I have a datepicker in my dialog and now I am trying to disable dates in the past from selection.
maybe someone would be kind enough to give me a little hint. I was wondering if there is a way to set minimum and maximum and leaving the dates out of this range disabled also visually...to achieve kind of this look

this is my datepicker right now:

REDEFINE DTPicker oCal1 VAR dDate1 UPDATE OF oDlg ID 4019 ON CHANGE (f_datumneu(cCombo, dDate1, dDate2, oDlg, oBrw, oBrw2), cSayAusgewaehlt := "Abfragedatum: "+dtoc(dDate1), oSayAusgewaehlt:refresh())

thank you very much already and kind regards to all
Ruth

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: DATEPICKER
Posted: Mon Feb 26, 2024 11:09 AM
Code (fw): Select all Collapse
oCal1:SetRange( dFirst, dLast )
Regards



G. N. Rao.

Hyderabad, India
Posts: 179
Joined: Fri Dec 07, 2007 01:26 PM
Re: DATEPICKER
Posted: Mon Feb 26, 2024 05:18 PM
Dear Mr. Rao,

thank you very much for your answer. This is working wonderfully.
Through searching the forum etc. I also found dtprang1.prg in samples and it is just what I was looking for. Thank you for making this :-)

and also a polite question: is it allowed to copy what´s in samples and integrate it in someone´s own code and what copyrights etc should I mention in case?

again very kind regards and have a nice evening
Ruth
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: DATEPICKER
Posted: Tue Feb 27, 2024 04:44 AM
is it allowed to copy what´s in samples and integrate it in someone´s own code and what copyrights etc should I mention in case?
You can freely use the code if it works for you.
No restrictions.
Regards



G. N. Rao.

Hyderabad, India
Posts: 179
Joined: Fri Dec 07, 2007 01:26 PM
Re: DATEPICKER
Posted: Tue Feb 27, 2024 07:36 AM
This is amazing, dear Mr. Rao. Thank you :-) Kind regards to all Ruth

Continue the discussion