BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDateTimePicker Edit Both Date and Time

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Jaco
Guest





PostPosted: Thu Feb 26, 2004 2:37 pm    Post subject: TDateTimePicker Edit Both Date and Time Reply with quote



Hi,

I was able to display both the Date and Time by using sendMessage as
follows.
SendMessage(DateTimePicker1.Handle,
DTM_SETFORMAT,
0,
LongInt(PChar('dd/MM/yyyy HH:mm:ss')));

The problem is that Delphi 7 does not allow me to change both the date
and the time.

When Kind is set to dtkDate, I can change the date and not the time,
and if Kind is set to dtkTime, I can change the time and not the Date.

Is there a way I can change both the date and the time in the edit
area and still keep the calendar dropdown to change the date?

Thanks,
Jaco
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.