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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus