01-06-2020, 08:48 PM
Sorry, bad example. Of course IWEdit1 do not have an OnChange event.
The question was a general one about events. Not just OnChange or OnAsyncChange. The issue is whether it is possible to disable and enable events in code.
As for the error mentioned: It is correct that IDE will accept the code, but the compiler will reject it. I suspect it should be so as IWEdit is a descendant from TEdit which has an OnChange event.
Regards
Soren
The question was a general one about events. Not just OnChange or OnAsyncChange. The issue is whether it is possible to disable and enable events in code.
As for the error mentioned: It is correct that IDE will accept the code, but the compiler will reject it. I suspect it should be so as IWEdit is a descendant from TEdit which has an OnChange event.
Regards
Soren