FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Time Picker?
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Time Picker?
Posted: Fri May 16, 2008 02:13 AM

Date picker is fine... It works elegantly.

How about Time picker? I cant find any working sample here

Regards

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Time Picker?
Posted: Sun May 18, 2008 08:26 AM

Frances,

Please review fwh\samples\DateTime.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Time Picker?
Posted: Sun May 18, 2008 11:56 AM

I already did... but error compiling ... Unresolved external '_HB_FUN_TTIMEPICK

I used TTime() and it worked well on my function...

My problem now is how to do a blank date on DEFINE DTPICKER using resource "SysDateTimePick32"?

even if I make the variable value to CToD("..") still not blank :roll:

Can you elaborate please?

Regards,

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Time Picker?
Posted: Mon May 19, 2008 08:09 AM

Frances,

add DTS_SHOWNONE to the style and you can have empty dates.

[/code]

kind regards

Stefan
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Time Picker?
Posted: Mon May 19, 2008 08:41 AM
Hi Stefan!

I can't find DTS_SHOWNONE value anyware in my FWH... ERROR Compiling my .RC with 'expecting window control style' :-)


I Can't find any working sample here either.


Thanks for the input and regards,




Ooooppppsssss

I found it!

#define DTS_SHOWNONE 0x0002
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Time Picker?
Posted: Mon May 19, 2008 08:59 AM
I Got it!


cDateTime := CToD('')
cTimeDate := ''

....

REDEFINE DTPICKER oDate VAR cDateTime;
ID 114 OF oDlg

REDEFINE DTPICKER oTime VAR cTimeDate;
ID 115 OF oDlg
.....


In RC:

#define DTS_SHOWNONE 0x0002
#define DTS_TIMEFORMAT 0x0009

....Date Format.....
CONTROL "", 114, "SysDateTimePick32", DTS_SHOWNONE| WS_TABSTOP, 53, 186, 76, 16

....Time Format.....
CONTROL "", 115, "SysDateTimePick32", DTS_TIMEFORMAT | DTS_SHOWNONE| WS_TABSTOP, 53, 186, 76, 16



Thank you Mr. Antonio and Mr. Stefan... You gave me a good kickstart!
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Time Picker?
Posted: Mon May 19, 2008 11:40 AM

Very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion