Can I still fire the orignal event?
Can I still trigger the orginal event after I assigned a new event to a control?
I have the code like this in the fast script:
procedure Edit1OnExit(Sender: TObject);
begin
ShowMessage('Leaving Edit1');
end;
begin
Edit1.OnExit := @Edit1OnExit;
end.
the code above is very simple and works fine, but if there is an orginal event assigned to Edit1 in delphi code, and I still need it to be fired. What I should do? The logic here is something like we call inherited.
Thanks a lot!
I have the code like this in the fast script:
procedure Edit1OnExit(Sender: TObject);
begin
ShowMessage('Leaving Edit1');
end;
begin
Edit1.OnExit := @Edit1OnExit;
end.
the code above is very simple and works fine, but if there is an orginal event assigned to Edit1 in delphi code, and I still need it to be fired. What I should do? The logic here is something like we call inherited.
Thanks a lot!
Comments
Is there any solution to use a event in the script and inherit de code from Delphi?