Set events

edited 5:25AM in FastScript
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

Comments

  • edited 5:25AM
    Please tell more details.
  • edited 5:25AM
    In the script, you can assign components events.
    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
  • edited 5:25AM
    Button1.OnClick := Button1Click;

    procedure TForm1.Button1Click;
    begin
    fsScript1.CallFunction('Button1Click', VarArrayOf([Self]));
    end;
  • edited 5:25AM
    I know you can call the procedure via CallFunction.
    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
  • edited 5:25AM
    No.
  • edited 5:25AM
    What about in the future?

    I'm trying to create a component inspector with properties og events.
    I need the possibility to assign these events.

    Regards
    Christian
  • edited 5:25AM
    Sorry, we're not planning this.

Leave a Comment