[Pas2js] Picture serialisation into Pascal
Michael Van Canneyt
michael at freepascal.org
Mon Dec 10 11:36:14 CET 2018
On Mon, 10 Dec 2018, Mattias Gaertner via Pas2js wrote:
> On Mon, 10 Dec 2018 11:10:40 +0100 (CET)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> [...]
>> I think the streamer in FPC also does this, as there is a separate
>> SetParent call, I would need to verify that.
>
> The dfm/lfm format does not store the Parent as property. It is
> implicitly given by the nested components. TReader sets Parent and Name
> property always before other properties.
Exactly, that is what I was referring to.
> TCompWriterPas has an option cwpoSetParentFirst to either write Parent
> first behind name or as last property.
Great. That means WarleyAlex' problem is easily solvable, if he uses this
component or a descendent :)
Michael.
More information about the Pas2js
mailing list