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 Change() event

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Michele Santucci
Guest





PostPosted: Tue Jun 14, 2005 1:34 pm    Post subject: TDateTimePicker Change() event Reply with quote



Hello NG,

as far as I can see TEdit controls raises "Change" events when the Text
property is changed by code.
So why the TDateTimePicker control doesn't ? I tried changing Date, Time and
even DateTime properties without results.

--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. +390187564080
Via Fontevivo 21/M
19126 La Spezia
===================


Back to top
Antonio Felix
Guest





PostPosted: Tue Jun 14, 2005 4:28 pm    Post subject: Re: TDateTimePicker Change() event Reply with quote




"Michele Santucci" <michele.santucci (AT) celinavio (DOT) it> wrote:
Quote:
Hello NG,

as far as I can see TEdit controls raises "Change" events when the Text
property is changed by code.
So why the TDateTimePicker control doesn't ? I tried changing Date, Time and
even DateTime properties without results.

--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. +390187564080
Via Fontevivo 21/M
19126 La Spezia
===================



Yes it raises (at run time editing the control)!
Are you changing the properties directly ?
if so you must call the OnChange Event:

DTP->Date = TDate();
DTP->Change( NULL ); // or DTPChange( DTP );

HTH
Antonio

Back to top
Antonio Felix
Guest





PostPosted: Tue Jun 14, 2005 10:06 pm    Post subject: Re: TDateTimePicker Change() event Reply with quote




"Antonio Felix" <nomail (AT) nm (DOT) pt> wrote:
Quote:

"Michele Santucci" <michele.santucci (AT) celinavio (DOT) it> wrote:
Hello NG,

as far as I can see TEdit controls raises "Change" events when the Text
property is changed by code.
So why the TDateTimePicker control doesn't ? I tried changing Date, Time and
even DateTime properties without results.

--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. +390187564080
Via Fontevivo 21/M
19126 La Spezia
===================



Yes it raises (at run time editing the control)!
Are you changing the properties directly ?
if so you must call the OnChange Event:

DTP->Date = TDate();
DTP->Change( NULL ); // or DTPChange( DTP );

HTH
Antonio

It should be

DTP->Date = TDate() // or wathever
DTP->DTPChange( NULL ) // or DTP->DTPChange(DTP)

Where DTPChange is your OnChange event handler

Br
Antonio


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.