[lazarus] Lazarus CVS update

Nicolas Aragon nico at clubdelphi.com
Thu Apr 29 18:20:09 EDT 1999


Hello,

>Ok I see where you are comming from how about this then..  Is there a panel
>widget?  

Boxes seems to do this works even better than Delphi TPanel.

>You could build this component and then place the memo on it and
>the scrollbars on each side. The panel would be thee parent of  the memo and
>the scrollbars.
>Just kicking around a few ideas.

Just another: make a difference between gtk logic and your own logic.

In gtk sense, yes, the memo is a child of the panel, but from your
point of view it's a field of the memo, not visible from outside.

In the memo's constructor you create the panel, place the memo and the
scrollbar inside the panel, and the panel in the supposed memo's
parent. 

If you use a code like the one I posted, if fact you have, for example
this gtk parentship relation:

  window->window.fixedbox->memo.panel->memo
                                     ->memo.scrollbar

But in logical structure you just have the window and the memo, being
the fixed box a field of the window and the panel and the scrollbar,
fields of the memo.

I'm now on NT and tonight it's my turn to sleep so I'm afraid I won't
be able to test this idea today O:)

greetings

    Nico






More information about the Lazarus mailing list