IWControlHelper::AddJavaScriptToExecute in C++ Builder (Priority support)

<< Click to Display Table of Contents >>

Navigation:  Forum >

IWControlHelper::AddJavaScriptToExecute in C++ Builder (Priority support)

Forum link

 


 

04-12-2023, 02:47 AM:

 

I am trying to call a JavaScript function from a TMenuItem onClick event, which of course has no JavaScriptEvent!

 

So I would like to use AddJavaScriptToExecute() in C++ Builder.

 

The problem is that when I open IWControlHelper.hpp, I do not see any class with static members!

 

Just 2 void pointers!

 

Am I including the right file?

 

How can I call AddJavaScriptToExecute() for Sync events in C++ Builder?

 


 

04-16-2023, 12:37 AM:

 

This is a limitation of C++Builder. C++ doesn't actually support class helpers and it has never been implemented in C++Builder specifically. Not sure there is an easy way to use them from C++Builder code, but I'll see what can be done.