On Tue, May 5, 2009 at 6:08 PM, Mattias Gaertner <nc-gaert...@netcologne.de> wrote: > > There are ways to use a single include file. For example: > > --------- > {$I unit1.lfm} > > constructor TForm1.Create(TheOwner: TComponent); > begin > RegisterComponentInit(@InitTForm1,TForm1); > inherited Create(TheOwner); > end;
Where is RegisterComponentInit() defined? I search all of Lazarus and FPC 2.2.5 and couldn't find a definition. > How are images and other arbitrary data saved to the source? Currently they are declared as byte array constant. I have a small little program that convert images using bin2obj > > *The lfm files can become quite large. Just put 100 components onto a > form and add some glyphs. There will be several thousand lines of > automatically generated code in your unit. Thousand lines in a lfm file compared to a pas file. Doesn't matter to me much - yet. > *Word completion will show you a lot of junk. > > *when the IDE searches a component with the name 'Form1' it has to > read in worst case all source files in the search path completely. This I'll investigate these two further. But so far it hasn't been an issue for me. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal