[Lazarus] TCustomControl.Autosize issue

Krzysztof dibo20 at wp.pl
Mon Dec 10 23:42:23 CET 2012


> If you are writing a custom control, then you need to write yourself
> code to calculate it's prefered size on autosize. I think that to do
> that you need to override the routine PreferredSize or something
> similar. And there implement the calculation like you want.

I thought so. I just overrided CalculatePreferredSize method and enumerated
child controls for height calculation. Works fine. Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121210/285e3bbf/attachment-0003.html>


More information about the Lazarus mailing list