[Lazarus] LCL improvement idea

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Jan 17 13:45:57 CET 2011



On Mon, 17 Jan 2011, Graeme Geldenhuys wrote:

> Op 2011-01-17 13:08, Michael Van Canneyt het geskryf:
>> This can in fact be avoided by having some kind of 'Application-Wide
>> defaults' system.
>
> Wouldn't Delphi's "Component Template" idea solve this too? As far as I
> can see Lazarus doesn't support the Component Template idea though.
>
>
> eg:
> In Delphi 7:
> 1) Place components as you want them on a designer form.
> 2) Set there properties as you want.
> 3) Select all those components then select
>    "Components > Create component template"
> 4) Give it a name and icon. Done!
>
>
> Now on the component palette under the "Templates" tab, you will have a
> new component. Click and drop it on a form to reproduce all that was
> done before - positioning and properties.
>
> No need to rebuild the IDE or install custom components...

It is not quite the same:

It works, till you need to change the template. (in my case, the defaults).

The template is copied, not 'inherited' or 'initialized'. If I'd need to
change something, then I'd need to change it in all locations where I used
the template. Not so with the defaults.

Michael.




More information about the Lazarus mailing list