FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DTPicker with empty date
Posts: 82
Joined: Fri Mar 03, 2006 06:26 PM
DTPicker with empty date
Posted: Wed Nov 13, 2013 02:25 PM

When using DTPicker with an empty date and DTS_SHOWNONE, today's date is shown. However, if the down arrow is selected to show the calendar, the get variable is filled with the default date. Subsequently, if the user [u:1k74gnwz]ESC[/u:1k74gnwz]apes, the get remains filled with the last date viewed. Is it possible to revert to an empty date without requiring the user to uncheck the get? Would this deviate from the Windows default?

TIA
David

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DTPicker with empty date
Posted: Thu Nov 14, 2013 04:32 PM

David,

We could try to add a

METHOD KeyDown() VIRTUAL

as in Class TDatePick there is very little that we implement besides the basic functionality of the Windows datepicker class. Thats why I thought that maybe an inherited method as KeyDown() maybe interfering

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: DTPicker with empty date
Posted: Fri Apr 06, 2018 07:45 AM

Hello,
I see in the 18.01 there is no way in TDatePick ():New to create it with DST_SHOWNONE style. so it is possibile only from rc... :(
I see also thath oDatePick:WinStyle(DST_SHOWNONE) does not work

Continue the discussion