[Pas2js] Picture serialisation into Pascal

Michael Van Canneyt michael at freepascal.org
Mon Dec 10 10:31:47 CET 2018



On Mon, 10 Dec 2018, Mattias Gaertner via Pas2js wrote:

> On Mon, 10 Dec 2018 09:11:59 +0100 (CET)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> A couple of remarks.
>> 
>> > I) Parent property, this property should be the first property, for
>> > instance: 
>> 
>> In general, this is incorrect. There should be no reason for this: 
>> a component must be able to handle this. 
>> The setting of properties can happen in any order, including parent.
>> If the component cannot handle this, it is badly written.
>
> Delphi components cannot.

? In my experience, most can. 
I often set a bunch of properties, and then set the parent.

Mchael.


More information about the Pas2js mailing list