[Pas2js] I would like to get JS units substitutes to compile my wcl treeview

Michael Van Canneyt michael at freepascal.org
Tue Nov 16 16:16:55 CET 2021



On Tue, 16 Nov 2021, Matthieu GIROUX wrote:

> Le 16/11/2021 à 15:53, Michael Van Canneyt a écrit :
>>
>>
>> On Tue, 16 Nov 2021, Matthieu GIROUX wrote:
>>
>>> Hello !
>>>
>>> I am creating a wcl treeview.
>>
>> What is a wcl treeview ?
> WCL is Pas2JS Widget.
>>
>>> But JS unit uses pas2JS compiler.
>>>
>>> I just want to verify compiling. But i must use FPC compiler for that.
>>
>> The JS unit will not compile with the FPC Compiler, it is meant 
>> specially for pas2js.
>>
>> Why can you not verify compilation with pas2js directly ?
>
> I use Lazarus. How can i do that ?

Follow the instructions here:

Install pas2js:
https://wiki.freepascal.org/pas2js

Integration with lazarus:
https://wiki.freepascal.org/lazarus_pas2js_integration

Simply create new web browser application, use your unit, 
and run the project in the browser.

Michael.


More information about the Pas2js mailing list