FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Current Date in DTPicker
Posts: 38
Joined: Tue Sep 30, 2008 11:16 AM
Current Date in DTPicker
Posted: Fri Jan 29, 2010 08:50 AM

Hi all !

I use the control DTPicker and it always displays the current date if the variable is empty;
there is a way to dispay a blank field when the variable is empty ?

Best regards

Wzaf

Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: Current Date in DTPicker
Posted: Fri Jan 29, 2010 10:49 AM

Working with rc-file , you can use DTS_SHOWNONE as :

CONTROL "", 114, "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP | DTS_SHOWNONE , 105 , 20 , 55, 10

Frank

Posts: 38
Joined: Tue Sep 30, 2008 11:16 AM
Re: Current Date in DTPicker
Posted: Sun Jan 31, 2010 08:54 AM
Tank you Frank,

But I use a DLL to store the resource, I use Pelles C ide , and I tried to give the same attribute : Show none = Yes , but
I obtain the same result with the difference that the date field is disabled.

Best regards

Wzaf
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: Current Date in DTPicker
Posted: Sun Jan 31, 2010 12:40 PM
wzaf wrote:Tank you Frank,

But I use a DLL to store the resource, I use Pelles C ide , and I tried to give the same attribute : Show none = Yes , but
I obtain the same result with the difference that the date field is disabled.

Best regards

Wzaf


That is the intention. Disabled means empty date , maybe yoy can test it before the data are written in the DBF.

Frank

Continue the discussion