Sign in Join

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

Mailing lists / lazarus / 2011-08

Forms and Generators

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Santhoff

Hi,

I have some question regarding forms and storage formats and the like:

1. Lazarus can write a form definiton to disk as an XML file. Is there a way to load this XML file again making a form out of it?

2. Is there any support for XForms planned or existing? See http://www.w3.org/standards/techs/xforms

3. Are there any other generator sources known making forms from objects, database records or anything else?

I'm interested in any piece of code that can build a form from any type of data source (spec file, object, ...) to any type of form (lazarus code+dfm, XForms instance, HTML Form, ...), only to sort out what has already been done. For sure I'll looking at lazarus' form de-/serializing code.

TIA for any hint,
Marc

Marc Santhoff

Reply by email

Mattias Gaertner
to Marc Santhoff
Show quoted text 6 lines
Hi, I have some question regarding forms and storage formats and the like: 1. Lazarus can write a form definiton to disk as an XML file. Is there a way to load this XML file again making a form out of it?

AFAIK the XML Writer need some work on collections. And I have not tested specials like frames.

2. Is there any support for XForms planned or existing? See http://www.w3.org/standards/techs/xforms

As far as I know: no.

3. Are there any other generator sources known making forms from objects, database records or anything else?

lfm, lrs, binary, pascal code.

Mattias

Reply by email

Marc Santhoff
to Mattias Gaertner
Mattias Gaertner wrote 12 lines
On Tue, 30 Aug 2011 23:54:26 +0200 Marc Santhoff wrote: > Hi, > > I have some question regarding forms and storage formats and the like: > > 1. Lazarus can write a form definiton to disk as an XML file. Is there a > way to load this XML file again making a form out of it? AFAIK the XML Writer need some work on collections. And I have not tested specials like frames.

So it is write only but does support the complete LCL (besides some TODOs left). Interesting, only the half way left to go.

Can somebody give me a name for grepping or file pointer to the sources of the XML writer, please?

> 2. Is there any support for XForms planned or existing? > See http://www.w3.org/standards/techs/xforms As far as I know: no.

OK
Understandable, the set of components defined by the XForms standard is much smaller than the LCL component set.

> 3. Are there any other generator sources known making forms from > objects, database records or anything else? lfm, lrs, binary, pascal code.

Fine, I'd have overlooked those completely. :)
Although I think i meant .lfm whre I wrote .dfm, sorry.

Thank you,
Marc

Marc Santhoff

Reply by email

Mattias Gaertner
to Marc Santhoff
Show quoted text 16 lines
Am Mittwoch, den 31.08.2011, 00:28 +0200 schrieb Mattias Gaertner: > On Tue, 30 Aug 2011 23:54:26 +0200 > Marc Santhoff wrote: > > > Hi, > > > > I have some question regarding forms and storage formats and the like: > > > > 1. Lazarus can write a form definiton to disk as an XML file. Is there a > > way to load this XML file again making a form out of it? > > AFAIK the XML Writer need some work on collections. > And I have not tested specials like frames. So it is write only but does support the complete LCL (besides some TODOs left). Interesting, only the half way left to go.

The reader works too.

Can somebody give me a name for grepping or file pointer to the sources of the XML writer, please?

Maybe you want to look at the example:
lazarus/examples/xmlstreaming/streamasxmldemo.lpi

Show quoted text 16 lines
> > 2. Is there any support for XForms planned or existing? > > See http://www.w3.org/standards/techs/xforms > > As far as I know: no. OK Understandable, the set of components defined by the XForms standard is much smaller than the LCL component set. > > 3. Are there any other generator sources known making forms from > > objects, database records or anything else? > > lfm, lrs, binary, pascal code. Fine, I'd have overlooked those completely. :) Although I think i meant .lfm whre I wrote .dfm, sorry.

Ah, I forgot: the FCL reader/writer are quite dfm compatible. The LCL lfm reader has some extras to read dfm too.

Mattias

Reply by email