Hi, I have a strange problem in my test project. It has a tmsfmxdatetimeedit. No event is triggered for that component. I tried change, CheckChanged, Exit events, none of then is triggered. My project is on C++ Builder XE8 on windows 7/64bit. I am using the latest TMS FMX pack.
Has any one had the same problem and if there is a solution for that?
Thanks!
Gene.
Just give more information about this.
DateTimeEdit does trigger the change event, but that is it. Nothing else. Since this component is bindable, but it is only one-way. That means I have to use some event handler to update my table that this is binded to. I tried checkchange event, and exit event, none of them works. I guess I have one option left to solve it. It is to use C++ builder default Dateedit and Timeedit seperately instead of using this combined one component.
Thanks!
Hi,
I have my problem project file. I still can't see if CheckChanged event is fired. It seems that there is no way to attach that project file here.
It is very simple, I have a DataTimeEdit added on a mainform, then I have this:
void __fastcall TForm1::TMSFMXDateTimeEdit1CheckChanged(TObject *Sender)
{
ShowMessage("CheckChanged");
}
//---------------------------------------------------------------------------
void __fastcall TForm1::TMSFMXDateTimeEdit1Exit(TObject *Sender)
{
ShowMessage("Exit");
}
No matter what I do with the dateTimeEdit, the CheckChaged is not fired.
I have not been able to reproduce an issue with the OnCheckChanged event.
Can you please make sure that ShowDateCheckBox and/or ShowTimeCheckBox is set to True?
Hi, Bart,
Now I understand what CheckChange means. Basically it is fired when the checkbox is ticked/unticked, not for changing the values. Since this TDateTimeEdit is bind only one way from my source, it doesn't update the source data, I have to have some way to do it. Change event is not a good way, and exit event is not implemented, I think I have to use C++ Build default TDate and TTime components instead of using this one combined component.
Thanks for helping!
Hi,
Please note that the OnEnter and OnExit events are now supported for the TTMSFMXDateTimeEdit in the latest version of TMS Pack for FireMonkey that was released on October 23.