paul.coshott Posted July 4, 2019 Share Posted July 4, 2019 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 5, 2019 Share Posted July 5, 2019 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]); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.