Current Date in DTPicker

Current Date in DTPicker

Postby wzaf » Fri Jan 29, 2010 8: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
wzaf
 
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: Current Date in DTPicker

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

Re: Current Date in DTPicker

Postby wzaf » Sun Jan 31, 2010 8: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
wzaf
 
Posts: 38
Joined: Tue Sep 30, 2008 11:16 am

Re: Current Date in DTPicker

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


Return to FiveWin for Harbour/xHarbour

Who is online

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