[Lazarus] TCoolBar improvements

Vojtěch Čihák vojtech.cihak at atlas.cz
Thu May 22 14:41:58 CEST 2014


Thanks.
 
It maybe help in TCoolBar but I guess it will be even more useful for TControlBar. 
 
I already edited the wiki (Merge requests / Submitted by others).
 
Vojtěch 
______________________________________________________________
> Od: Mattias Gaertner <nc-gaertnma at netcologne.de>
> Komu: <lazarus at lists.lazarus.freepascal.org>
> Datum: 22.05.2014 14:17
> Předmět: Re: [Lazarus] TCoolBar improvements
>
On Thu, 22 May 2014 12:36:20 +0200
Vojtěch Čihák <vojtech.cihak at atlas.cz> wrote:

> I've got one objection to AlignControls() method. It's implementation in LCL differs from Delphi.
> While in Delphi it comes with parameter AControl: TControl - currently aligned control, in LCL
> is this parameter always nil but method is triggered many times (as many controls container has).
> Therefore I am careful with using it; it can easily lead to redundant calculations.

Hint: When changing multiple properties use Disable/EnableAutoSizing:

http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Reduce_overhead_with_DisableAutoSizing.2C_EnableAutoSizing <http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Reduce_overhead_with_DisableAutoSizing.2C_EnableAutoSizing>

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140522/b4bb4586/attachment-0003.html>


More information about the Lazarus mailing list