FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TO Mr Rao : XBrDtPicker
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
TO Mr Rao : XBrDtPicker
Posted: Mon May 20, 2019 10:32 AM


if my price list starts from 15 June 2019 until 20 September 2019, can I block the other months on XBrDtPicker so that the user is limited?
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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Mon May 20, 2019 11:50 AM
Silvio,

I tested to move to the defined date but nothing happens.
maybe it works in Your solution.
I created something special because of some needed / included actions
and other extras so it looks different like You can see

trying to move to the selected date with :
ACTION oCal:SetDate( oCust:HireDate, .T. ), ;
oCal:Refresh() ;




regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Mon May 20, 2019 12:08 PM

I can set dparam and run ok
only I cannot set a Interval of date as I ask (from ...to)

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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Mon May 20, 2019 12:13 PM
Silvio,

FOUND :-) moving to the old date works like:

ACTION oCal:SetDate( oCust:HireDate, .T. ), ; // old date from xBrowse
oCal:Change() ;

or moving back to today from a old selected date
ACTION ( cRet := oCal:SetDate( Date(), .T. ), oCal:Change() ) ;

regards
Uwe
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 01:23 PM

This is the syntax of FWH function

XbrGetDate( dDateVal, cTitle, dMinDate, dMaxDate, lAllowBlank, nSize )

The function returns DateSelected. If no date is selected, it returns nil

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:23 PM

yes, of course
I had asked if you could set a date range by limiting the end user to select a date only in the requested date range: for example the season starts from June 15th to September 15th I wanted the user could only enter a date of the period

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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:30 PM
Using with Get in dialog:

Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local dDate    := Date()
   local oDlg, oFont

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-20

   DEFINE DIALOG oDlg SIZE 600,600 PIXEL TRUEPIXEL FONT oFont

   @  40, 200 GET dDate SIZE 200,30 PIXEL OF oDlg ;
      ACTION XbrGetDate( Self, "Select Date", {^ 2019/05/15 }, {^ 2019/05/30 } ) ;
      BITMAP "c:\fwh\bitmaps\32x32\calendar.bmp"

   @ 200,40 BUTTON "OK" SIZE 100,30 PIXEL OF oDlg ACTION MsgInfo( dDate )

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFont

return nil


Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:38 PM

I think I not have these release ....

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: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:47 PM
Mr Rao,
THANKS



why I see the buttons changed ( see the red box)
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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:48 PM

fwh\source\function\xbrgetdt.prg

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: TO Mr Rao : XBrDtPicker
Posted: Sun May 26, 2019 02:54 PM

But why I not see X ?
do you have some particular setup ?

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