DTPICKER and empty Dates

DTPICKER and empty Dates

Postby Horizon » Tue Dec 16, 2008 12:17 pm

Hi,

I have looked the TestDtp.prg and DateTime.prg in samples directory. I have searched in forum. I have found some solution, but I could not found the found that I searched. (I don't want checkbox)

My Problem: I have empty date fields. I want to use DTPICKER (or something else similiar). When I open the dialogs, DTPICKER converts and says my empty field to Today Date.(Date()). It does not change the my value, but it confuses the my customers mind.

Is it possible to not to say if the var of date is empty?

Thanks,
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Postby Francisco Horta » Tue Dec 16, 2008 3:38 pm

Hakan,
Put the link with btnget class

http://forums.fivetechsoft.com/viewtopi ... 1ee46a5d17

regards
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Postby Horizon » Tue Dec 16, 2008 4:02 pm

Thanks Paco,

I will check it.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Postby StefanHaupt » Wed Dec 17, 2008 8:45 am

Hakan,

add DTS_SHOWNONE to the style of the control

example in .rc file:
Code: Select all  Expand view
CONTROL "", 202, "SysDateTimePick32", DTS_SHOWNONE|WS_TABSTOP, 86, 82, 62, 12
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Horizon » Wed Dec 17, 2008 9:29 am

Thanks Stefan,

I don't use resource editor. Is it possible to write it directly in application.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Postby Horizon » Wed Dec 17, 2008 10:18 am

Hi,

I have found How to use it, but enabled the checkbox. I don't want to see the checkbox.

I think This problem is related the "SysDateTimePick32". I think we should use normal masked editbox with user defined function that is mentioned before messages in this thread.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Postby StefanHaupt » Thu Dec 18, 2008 8:36 am

Hakan,

Defining it from source you can write
Code: Select all  Expand view
@x,y DTPICKER oDate VAR dDate ....
oDate:nStyle := nOr (DTS_SHOWNONE,oDate:nStyle)


The checkbox is unchecked, if dDate is empty.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby ShumingWang » Fri Dec 19, 2008 1:02 am

I think the best is add a calendar browse to GET / BTNGET action clause.
The datepicker class works not well as GET class.
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

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