Set events
On page 20 in the developers manual ver. 1.4 I found an example, how to set control events in the pascal script.
But is it possible to register the events from the delphi code, before running the script?
Thanks
Regards
Christian
But is it possible to register the events from the delphi code, before running the script?
Thanks
Regards
Christian
Comments
Example: Button1.OnClick := @Button1Click;
How do you assign events from the delphi code, before running the script?
I need to assign a buttons onClick event to a prodecure in the script.
I hope it explains
procedure TForm1.Button1Click;
begin
fsScript1.CallFunction('Button1Click', VarArrayOf([Self]));
end;
Then I have to write a delphi code event, where I call the script procedure.
Is it posible to do it directy, like the ???SetEvent??? procedure, from the RosSky script component?
Thanks
Christian
I'm trying to create a component inspector with properties og events.
I need the possibility to assign these events.
Regards
Christian