Current Date in DTPicker

Post Reply
wzaf
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Current Date in DTPicker

Post by wzaf »

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
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: Current Date in DTPicker

Post by demont frank »

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
wzaf
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: Current Date in DTPicker

Post by wzaf »

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
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: Current Date in DTPicker

Post by demont frank »

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
Post Reply