Jump to content

Calling a JS ExtEvent from within pascal code


paul.coshott

Recommended Posts

Hi All,

Can anyone tell me if it is possible to call a JS ExtEvent (such as a click event) from within a pascal coded event?

And how do I use a new custom event created in the list of ExtEvents? How do I call it? Can this be called from within a pascal event?

Cheers,
Paul

Delphi 10.2 Pro, uniGUI 1.9.0.1504 Complete Professional, Windows 10 Pro

Link to comment
Share on other sites

19 hours ago, paul.coshott said:

Can anyone tell me if it is possible to call a JS ExtEvent (such as a click event) from within a pascal coded event?

If I understand you correctly, you can try these codes:

UniPanel.JSInterface.JSCall('click', []);

UniPanel.JSInterface.JSCall('fireEvent', ['click']);

UniPanel.JSInterface.JSCall('fireEvent', ['click', UniPanel.JSControl]);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...