Time Picker?

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Time Picker?

Post by fraxzi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frances,

Please review fwh\samples\DateTime.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

Frances,

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

[/code]
kind regards
Stefan
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

Hi Stefan!

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


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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply