[lazarus] Form structure by class reference?

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sat Nov 8 09:12:52 EST 2003




On Sat, 8 Nov 2003, Mattias Gaertner wrote:

> On Fri, 7 Nov 2003 18:30:03 +0100 (W. Europe Standard Time)
> Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> 
> > 
> > 
> > On Fri, 7 Nov 2003, Tony Maro wrote:
> > 
> > > > -----Original Message-----
> > > > From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de]
> > > >
> > > > On Fri, 07 Nov 2003 09:30:07 -0600
> > > > Tony Maro <tony at maro.net> wrote:
> > > >
> > > > > Is it possible to discern the structure of a custom form
> > > > class without
> > > > > creating the form?
> > > > >
> > > >
> > > > (The codetools are capable to scan the lrs/lfm information
> > > > and to create a lfm source tree).
> > > >
> > > > What information do you need?
> > > >
> > >
> > > Well, I've got this bright idea of an ISAPI interface that would create
> > > HTML forms from simple Lazarus forms.  So, what I'm after is what
> > > controls are on the form (label, text, checkbox, buttons, etc.) and the
> > > position so I can create an HTML form based on it.  I might even create
> > > my own special visual components for dropping on a form that are
> > > especially suited to HTML formatting.
> > >
> > > I already have the ISAPI component basics completed but wanted an easier
> > > way to display the data on a webpage than hand-coding HTML for it.
> > >
> > > Since it's a console only app, I have no need to actually create the
> > > form, I just want to know how it's organized.
> > 
> > I think the best way is to make it XML.
> > 
> > There is a basic XML streamer for the FCL. It simply needs to be
> > put in Lazarus, so lazarus could stream/export the form to XML,
> > and you could analyze the XML.
> > 
> > (note: I don't propose to make this XML the default streaming format,
> > just an export...)
> 
> I'm not sure, if this feature will be used often.
> Maybe it is sufficient to write a small lfm2xml program and add it to the
> tools directory?

It's also possible of course, though I think it will be more work, 
as you have to parse the .lfm. But it's worth a shot.

Michael.






More information about the Lazarus mailing list