Time Picker?

Time Picker?

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

Postby Antonio Linares » Sun May 18, 2008 8:26 am

Frances,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby StefanHaupt » Mon May 19, 2008 8:09 am

Frances,

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

[/code]
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby fraxzi » Mon May 19, 2008 8:41 am

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

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

Postby Antonio Linares » Mon May 19, 2008 11:40 am

Very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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