TO Mr Rao : XBrDtPicker
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
TO Mr Rao : XBrDtPicker
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
Re: TO Mr Rao : XBrDtPicker
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
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
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: TO Mr Rao : XBrDtPicker
I can set dparam and run ok
only I cannot set a Interval of date as I ask (from ...to)
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
Re: TO Mr Rao : XBrDtPicker
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
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: TO Mr Rao : XBrDtPicker
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
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
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: TO Mr Rao : XBrDtPicker
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 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
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: TO Mr Rao : XBrDtPicker
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
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: TO Mr Rao : XBrDtPicker
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
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: TO Mr Rao : XBrDtPicker
Mr Rao,
THANKS
why I see the buttons changed ( see the red box)
THANKS
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
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: TO Mr Rao : XBrDtPicker
But why I not see X ?
do you have some particular setup ?
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