I am trying to derive components from WEBcore component... When I ran into trouble I tried the following very simple test.
I assume you compile this package from the Delphi IDE as package to install the design-time version of the component? (i.e. it gets compiled with the DCC32 compiler)
Then make sure to add the runtime class source file to a folder in the library path of the pas2js compiler.
Thanks for the reply Bruno.
I tried amending my type definition to:
You need to recompile the package after adding the attribute and possibly you need to close the IDE, remove the package from the cached packages (registry) and restart the IDE and recompile the package. The IDE is known to often keep working with cached component info.
Thanks Bruno - but sadly still no component visible for WebCore. I did all you said, and even made a new package with a new component but still no luck. Although I can use new component in a WebCore application by adding a web button and then changing the type manually.
Other than the package cache, I cannot think of a reason (we have encountered the package cache here in the past)
I did. I also made a new package with a different name and component and installed it without success. I tried installing the new component into Delphi 10.2 with the same results as in Delphi 10.3.
I am out of ideas.
Please send code/package so we can inspect here;
Thanks Bruno - I have sent a zip of the code and package
we will have a look and reply to the email.