<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Delphi has no TGroupBox.Autosize but it has TPanel.AutoSize.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">When I put children on Panel, set very long Panel.Caption and Panel.AutoSize:=True then panel shrinks to the smallest possible size (around children) ignoring its own Caption.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">So it seems more a feature than a bug to me.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Vojtěch </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Henry Vermaak <henry.vermaak@gmail.com><br />
> Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><br />
> Datum: 04.07.2014 13:40<br />
> Předmět: [Lazarus] GTK2 GroupBox auto size<br />
></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi<br />
<br />
The GroupBox auto size doesn't work very well, because it doesn't take<br />
the label width into account. If the label is wider than all of the<br />
children, it will get clipped. Any reason why GetGTKDefaultWidgetSize<br />
wasn't used, like virtually everywhere else in gtk2wsstdctrls.pp?<br />
<br />
I attach a patch that uses GetGTKDefaultWidgetSize.<br />
<br />
Henry<br />
<br />
<br />
----------<br />
<br />
--<br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus.freepascal.org<br />
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a></p>