Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-09

Tool to convert components properties to Pascal source code.

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Frank Church
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

Reply by email

Antônio
to Mattias Gaertner

Try this:

http://lazarusbrasil.org/LFM2Code.zip

Ant?nio

2010/9/26 Mattias Gaertner :

Show quoted text 18 lines
On Sun, 26 Sep 2010 16:05:08 +0100 Frank Church 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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Frank Church
to Antônio
Ant?nio 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?

Show quoted text 30 lines
http://lazarusbrasil.org/LFM2Code.zip Ant?nio 2010/9/26 Mattias Gaertner : > On Sun, 26 Sep 2010 16:05:08 +0100 > Frank Church 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 > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100929/822baa51/attachment.html>

Reply by email

Antônio
to Frank Church

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 :

Show quoted text 96 lines
On 27 September 2010 08:29, Ant?nio 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 : > > On Sun, 26 Sep 2010 16:05:08 +0100 > > Frank Church 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 > > > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Frank Church ======================= http://devblog.brahmancreations.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email