[Lazarus] LCL improvement idea

Luiz Americo Pereira Camara luizmed at oi.com.br
Wed Jan 19 11:12:47 CET 2011


Michael Van Canneyt escreveu:
>
>
> On Tue, 18 Jan 2011, Luiz Americo Pereira Camara wrote:
>
>> michael.vancanneyt at wisa.be escreveu:
>>>
>>> My system will be significantly faster, and is easily controllable on a
>>> per-component basis.
>>
>>
>> It will be pluggable and optional, so does not alter the executable 
>> size of who does not use it?
>
> This can only be done when the 'Default' component is the same class 
> as the component to be loaded. Otherwise, a separate class must be 
> made per class.
>
> This may be not such a bad idea. Simply have an instance of the same 
> class, with properties set to their desired default values.
>
> In such a case, all you need is 1 extra variable per used class.
>
> Comments, thoughts, anyone ?

At each layer in LCL do you plan to apply the default values.

Maybe you could add a mechanism to hook the creation of TLCLComponent 
(an event) and then do the job in another unit. It would cost only one 
variable more and all overhead would be in a separate unit.

Luiz




More information about the Lazarus mailing list