[lazarus] Form structure by class reference?
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Nov 7 10:47:55 EST 2003
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?
>
> I.E. I want to have a form in a project that has controls on it, but NOT
> create the form at runtime. I just want to read what components were
> designed into it, and where they are supposed to be located on the form
> _if_ it were created.
Not easily.
The form component information is kept in the .lrs file, which is included
as lazarus resource. The LCL fetches this information and creates a TReader,
which creates the components. The exact nature is determined by the
components itself. So, the only 100% reliable way is to create it.
(The codetools are capable to scan the lrs/lfm information and to create a
lfm source tree).
What information do you need?
Mattias
More information about the Lazarus
mailing list