Set events

edited 12:37AM 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 12:37AM
    Please tell more details.
  • edited 12:37AM
    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 12:37AM
    Button1.OnClick := Button1Click;

    procedure TForm1.Button1Click;
    begin
    fsScript1.CallFunction('Button1Click', VarArrayOf([Self]));
    end;
  • edited 12:37AM
    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 12:37AM
    No.
  • edited 12:37AM
    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 12:37AM
    Sorry, we're not planning this.

Leave a Comment