[Lazarus] Custom control with stepwise size adjustment

gabor gabor at poczta.onet.pl
Thu Sep 20 20:37:24 CEST 2018

W dniu 2018-09-20 o 19:20, Juha Manninen via Lazarus pisze:
> You can override procedures CalculatePreferredSize and
> GetPreferredSize, defined in TControl.

I tried. Unfortunately, it does not work with Anchors or Align - 
preferred values are ignored. But size correction in ChangeBounds 
actually works.

> TWinControl has more virtual methods that you should check out.

I noticed. The AutoSize mechanism is bit complicated.

Regards, Michał

More information about the Lazarus mailing list