[Lazarus] New unit with resource with some components on it by default

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 29 10:34:17 CET 2010


On Mon, 29 Nov 2010 10:21:07 +0100
Joost van der Sluis <joost at cnoc.nl> wrote:

> Hi all,
> 
> Is it possible to add a 'new module' option to the ide which has by
> default some components on it?
> 
> With a TFileDescPascalUnitWithResource, it is possible to add a new
> module type, but I can't find out a way to add some components on it by
> default. (I could add the definitions to the code, offcourse, but how to
> add them to the resource?)

You can specify the lfm. Override the method GetResourceSource.

 
> Or do we have to add something for this so that it becomes possible?

Mattias




More information about the Lazarus mailing list