[Lazarus] TCoolBar improvements

Juha Manninen juha.manninen62 at gmail.com
Thu May 22 12:20:33 CEST 2014


On Thu, May 22, 2014 at 12:50 PM, Vojtěch Čihák <vojtech.cihak at atlas.cz> wrote:
> I can also look for some optimalization,
> CalculateAndAlign is the most time consuming method, so I'll
> check if it's not called redundantly.

I don't think it is called redundantly but the calls to Invalidate and
ReAlign trigger LCL to call AlignControls and Resize excessively. The
right way is to move the logic from CalculateAndAlign to AlignControls
and CalculatePreferredSize. See my original component, IMO this part
of its design was good.

Juha




More information about the Lazarus mailing list