TO Mr Rao : XBrDtPicker

TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » Mon May 20, 2019 10:32 am

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?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Postby ukoenig » 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() ;


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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Postby ukoenig » Mon May 20, 2019 12:13 pm

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: TO Mr Rao : XBrDtPicker

Postby nageswaragunupudi » Sun May 26, 2019 1: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
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » Sun May 26, 2019 2: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Postby nageswaragunupudi » Sun May 26, 2019 2:30 pm

Using with Get in dialog:

Code: Select all  Expand view
#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
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » Sun May 26, 2019 2: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » Sun May 26, 2019 2:47 pm

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.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm

Re: TO Mr Rao : XBrDtPicker

Postby nageswaragunupudi » Sun May 26, 2019 2:48 pm

fwh\source\function\xbrgetdt.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TO Mr Rao : XBrDtPicker

Postby Silvio.Falconi » Sun May 26, 2019 2: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7055
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 87 guests