[Lazarus] GTK2 GroupBox auto size

Henry Vermaak henry.vermaak at gmail.com
Sun Jul 6 14:40:53 CEST 2014


On Sat, Jul 05, 2014 at 01:03:19PM +0100, Henry Vermaak wrote:
> On Sat, Jul 05, 2014 at 02:05:10PM +0300, Juha Manninen wrote:
> > I applied the patch from Henry. I hope we get LCL-Win fixed, too.
> 
> Thanks.  I'll look into lcl-win, it'll need a GetPreferredSize with
> MeasureText and some more magic to take the borders into account.

I've uploaded a patch to the bug report.  The hard coded numbers don't
feel very good, but I haven't found a better way of doing it.  The other
GetPreferredSize implementations in the file also seem to do that.

Henry




More information about the Lazarus mailing list