[Pas2js] Remove unwanted form properties
Michael Van Canneyt
michael at freepascal.org
Mon Apr 9 00:03:03 CEST 2018
On Sun, 8 Apr 2018, warleyalex via Pas2js wrote:
> Now, the idea is create
> fully functional project with multiple "WebForms".
>
> In a pas2js WebApplication we can have multiple WebForms. Assuming "WebForm"
> is basically a lazarus "form unit" with an associated HTML page. This
> TWebForm inherits from the TForm. We I use the TCompWriterPas to mimic the
> "component-to-code" it spills the following output:
>
> Now I was stuck on how to prevent TCompWriterPas to emit these unwanted
> properties, for instance:
> --> ClientHeight
> --> ClientWidth
> --> LCLVersion
>
> I think I won't use the LCLVersion property in a pas2js web application.
>
>
>
>
> Any idea how to prevent some properties
> ClientHeight:=480;
> ClientWidth:=640;
> LCLVersion:='1.9.0.0';
Simply hardcode it.
Michael.
More information about the Pas2js
mailing list