[Lazarus] GTK2 GroupBox auto size

Henry Vermaak henry.vermaak at gmail.com
Mon Jul 7 13:14:56 CEST 2014


On Sun, Jul 06, 2014 at 01:40:53PM +0100, Henry Vermaak wrote:
> 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.

Since I can't reach the bug tracker, I'll attach the Qt patch here so
Zeljan can have a look.

Henry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-groupbox-prefsize.patch
Type: text/x-diff
Size: 1603 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140707/8cb8368c/attachment-0001.patch>


More information about the Lazarus mailing list