Set events

edited 5:00PM 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:00PM
    Please tell more details.
  • edited 5:00PM
    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:00PM
    Button1.OnClick := Button1Click;

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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.