TO Mr Rao : XBrDtPicker

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

Image

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?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: TO Mr Rao : XBrDtPicker

Post by ukoenig »

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() ;


Image

regards
Uwe :?:
Last edited by ukoenig on Wed May 22, 2019 3:25 pm, edited 1 time in total.
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.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

I can set dparam and run ok
only I cannot set a Interval of date as I ask (from ...to)
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: TO Mr Rao : XBrDtPicker

Post by ukoenig »

Silvio,

FOUND :D 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.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TO Mr Rao : XBrDtPicker

Post by nageswaragunupudi »

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
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TO Mr Rao : XBrDtPicker

Post by nageswaragunupudi »

Using with Get in dialog:

Code: Select all

#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
 
Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

I think I not have these release ....
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

Mr Rao,
THANKS

Image

why I see the buttons changed ( see the red box)
Last edited by Silvio.Falconi on Sun May 26, 2019 2:51 pm, edited 1 time in total.
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TO Mr Rao : XBrDtPicker

Post by nageswaragunupudi »

fwh\source\function\xbrgetdt.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Post by Silvio.Falconi »

But why I not see X ?
do you have some particular setup ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply