[lazarus] Add lcl component
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Nov 13 16:28:57 EST 2002
On 13 Nov 2002 15:18:07 -0600
Tony Maro <tony at maro.net> wrote:
> Oh, and if you delete the TCheckbook, the label that's not ontop of it
> will disappear too.
Andrew is right.
I will try to explain it in other words:
1. TCheckBook with csAccepptsControls:
When you put a TLabel on TCheckBook, it's Parent becomes TCheckBook.
TCheckbook is csFixed and so the gtk-interface creates a special widget.
This widget type is a lazarus invention and supports scrollbars and a caret,
but not adding child widgets. This feature is not implemented yet. So, for
the LCL everything is ok and hence the IDE paints the grabbers and excludes
the TLabel area from the client area (the grid of TCheckBook). But for the
gtk the label widget is not there and so it is not painted.
2. TCheckBook without csAcceptControls:
Again when you put a TLabel on TCheckBook, it's Parent becomes the parent of
TCheckBook (= the form). As Andrew said, the creation order is not correct,
and so the TLabel is behind TCheckBook and therefore you can't see it. Move
the CheckBook away and the TLabel appears.
Mattias
More information about the Lazarus
mailing list