DTPicker with empty date

DTPicker with empty date

Postby David Williams » Wed Nov 13, 2013 2: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 ESCapes, 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
User avatar
David Williams
 
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland

Re: DTPicker with empty date

Postby Antonio Linares » Thu Nov 14, 2013 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: DTPicker with empty date

Postby AntoninoP » Fri Apr 06, 2018 7: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
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests