[Lazarus] Tool to convert components properties to Pascal source code.

Antônio antoniog12345 at gmail.com
Wed Sep 29 09:46:48 CEST 2010


The intention is to save the developer of the manual work of writing
hundreds of lines of boilerplate code. What is up to you will not be
solved by any tool.

Anyway, you have always the option to not use the tool.

Antônio


2010/9/29 Frank Church <vfclists at gmail.com>:
>
>
> On 27 September 2010 08:29, Antônio <antoniog12345 at gmail.com> wrote:
>>
>> Try this:
>
> I have tried your example with this code
>
> object FPWebModule1: TFPWebModule1
> OldCreateOrder = False
> Actions = <
> item
> Name = 'func1call'
> Default = True
> OnRequest = func1callRequest
> end>
> CreateSession = False
> Height = 300
> HorizontalOffset = 290
> VerticalOffset = 149
> Width = 400
> end
>
>
> FPWebModule1 := TFPWebModule1.Create(Application);
> with FPWebModule1 do
> begin
> OldCreateOrder := False;
> Actions := <;
> item;
> Name := 'func1call';
> Default := True;
> OnRequest := func1callRequest;
> end>;
> CreateSession := False;
> Height := 300;
> HorizontalOffset := 290;
> VerticalOffset := 149;
> Width := 400;
> end;
>
> The Action property translates as:
> Actions := <;
> item;
> Name := 'func1call';
> Default := True;
> OnRequest := func1callRequest;
> end>;
> Is this correct ObjectPascal code?
>
>>
>> http://lazarusbrasil.org/LFM2Code.zip
>>
>> Antônio
>>
>> 2010/9/26 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>> > On Sun, 26 Sep 2010 16:05:08 +0100
>> > Frank Church <vfclists at gmail.com> wrote:
>> >
>> >> Is there a tool that can take an .lfm file and generate the equivqlent
>> >> Pascol code to create it runtime?
>> >
>> > See examples/pascalstream/PascalStream1.lpi.
>> >
>> > It does not support DefineProperties, for example image data.
>> >
>> > Mattias
>> >
>> > --
>> > _______________________________________________
>> > Lazarus mailing list
>> > Lazarus at lists.lazarus.freepascal.org
>> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>> >
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>




More information about the Lazarus mailing list