On Tue, Mar 17, 2015 at 06:20:32PM +0100, Mattias Gaertner wrote:
> On Tue, 17 Mar 2015 17:05:30 +0000
> Henry Vermaak <[email protected]> wrote:
> 
> >[...]
> > > The LCL gtk2 interface computed the preferred size of a groupbox
> > > including the child controls, which lead to a loop.
> > > We need another way to compute the size of a groupbox without the child
> > > controls.
> > 
> > I don't understand, how can you know the size of the groupbox if you
> > don't know the size of the children?  How does, e.g., a panel do this?
> > Sorry if this is a stupid question, the auto size mechanics confuse me a
> > bit.
> 
> The gtk2 interface only knows the current size of the child
> control(s). It does not know the preferred size of the child control(s).

So how do we fix this?  If the groupbox code is changed so that it only
evaluates its own minimum size, will the autosize code do the rest, i.e.
loop over the children and take the maximum width/height?

Henry

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to