[Pas2js] TMS Web Clone
Michael Van Canneyt
michael at freepascal.org
Tue Feb 27 13:25:03 CET 2018
On Tue, 27 Feb 2018, warleyalex via Pas2js wrote:
> I was recently analyzing the TMS Web Core framework, and and quite a bit of
> effort, doing some reverve engineering I believe I created a clone!
Congratulations :)
> , , , , ,
> <(__)> | | |
> | \/ | \_|_/
> \^ ^/ |
> /\--/\ /|
> / \/ \/ |
>
> - there are enough similarities that it's clear that they have the same
> source. That works quite a bit better than I expected! Unfortunately, I can
> only create components only on runtime.
Which 'same source' do you mean ? If you mean that the RTL is the same, then
yes, obviously. We cooperate with them.
>
> There are some issue:
>
> I think the TMS Web Core, auto generates the LoadDFMValues method.
It does. It does many, many other things as well.
> I could find a way to achieve this, I have manually to type the code. Look at this
> example:
I believe Mattias Gartner has plans for a TReader/TWriter set of classes that
generate .pas code instead of a .dfm. So maybe you should contact him.
> ------------------------------------------------------------
>
> I never created a Lazarus visual component before, is it possible to install
> the WEBLib.StdCtrls (this unit contains TLabel, TEdit, TButton, TComboBox
> and TMemo) visual web component on Lazarus IDE?
I doubt it. The LCL works very diffferently from Delphi. What do you want to
achieve ?
>
> b) another thing, how to get the module name? for instance, the main HTML
> page "projWEBForms.html"?
In lazarus he file has extra properties. Check the pas2jsdsgn package,
pjsdsnregister unit, line 525:
HTMLFIle.CustomData[PJSIsProjectHTMLFile]:='1';
This is how we recognize the file.
Michael.
More information about the Pas2js
mailing list