| View previous topic :: View next topic |
| Author |
Message |
Michele Santucci Guest
|
Posted: Tue Jun 14, 2005 1:34 pm Post subject: TDateTimePicker Change() event |
|
|
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
|
Posted: Tue Jun 14, 2005 4:28 pm Post subject: Re: TDateTimePicker Change() event |
|
|
"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
|
Posted: Tue Jun 14, 2005 10:06 pm Post subject: Re: TDateTimePicker Change() event |
|
|
"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 |
|
 |
|