FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dtpicker Question
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Dtpicker Question
Posted: Wed Sep 28, 2011 08:14 AM

Hi,

Is there a way knowing when the user has clicked & selected a date using dtpicker? I have a screen that has a start & end date and it shows transactions based on the dates entered. Currently i'm using valid on the date picker to refresh the contents of the screen, but that means that the user has to select the date and move away from the date field. If I use the on change option, the browse refreshes if the user changes the month/year in the date picker before they have selected a date, so I was wondering if there was a way to modify dtpicker to call a code block when the user clicks on a date?

Thanks in advance

Pete

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Dtpicker Question
Posted: Thu Sep 29, 2011 04:24 AM

Pete,

Have you tried using bChange?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Dtpicker Question
Posted: Thu Sep 29, 2011 08:28 AM

Hi James,

When I put the ON CHANGE/bChange onto the dtpicker, this is called when I scroll through the months/years within the calendar, so each time you change the month/year, my app sets a scope (possibly a filter too). I could have a button that the users click to apply the change manually, but then this screen would operate diferently to other screens in my app.

regards,

Pete

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Dtpicker Question
Posted: Thu Sep 29, 2011 12:42 PM

Pete,

This does seem to be a dilemma. I can't think of how the control can know when the user is done selecting a date until the user leaves the GET. A search button, as you suggested, would work and users are used to having to click such a button when searching data.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion