[fpc-pascal] WriteComponent not outputting a hierarchy of components?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 3 22:58:34 CEST 2010


On Thu, 3 Jun 2010 22:38:53 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> On 3 June 2010 21:22, Marco van de Voort wrote:
> >>
> >> I deliberately didn't mention these cases ;)
> >
> > labelededit ?
> 
> 
> Huh? 
> I added a LabelEdit to my test app mentioned in my reply to
> Mattias. Here is the output, and as you can see the internal label in
> the LabelEdit is listed via Components[] array too.

Marco just gave another example where the Owner is not the form.

 
> --------------------------------
> $ ./project1
> Label1
> Button1
> Memo1
> GroupBox1
> Edit1
> CheckBox1
> Button2
> LabeledEdit1
>   SubLabel
> OpenDialog1
> --------------------------------
> 
> BTW:
> The reason for the Edit1 and CheckBox1 not being indented because they
> are actually children of GroupBox1 is due to a old z-order bug in GTK2
> (if I remember correctly). Like I mentioned, this copy (at home) is a
> rather old Lazarus.

No. It is because you only use the Owner tree instead of both the Owner
and Parent tree.


Mattias



More information about the fpc-pascal mailing list