[Lazarus] Non visual programs that use components

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 16 09:19:46 CEST 2010


On Thu, 16 Sep 2010 00:59:22 +0100
Frank Church <vfclists at gmail.com> wrote:

> Which of the demo programs show how to create programs that are not visual,
> but allow components to be created at runtime, rather than adding them to
> the form.

Many examples create components in code. 
For example examples/taborder.lpi.
You can mix, that means use a lfm and add some components later in code.
 
> What type of projects should be chosen when picking the project type from
> the New menu?

There is no difference. 'Application'.
You can convert any project type in any other, because it is just a
bunch of flags.

 
> How do you tell the units dependencies as the IDE is not there to
> automatically add them to the form's unit?

You can find the unit name by right clicking on the icon on the
component palette. This will open a popup menu and show the package
and file name. 
If you have not yet used the package, click on the menu item to open
it. Then More / Add to project.

Or you can use the View / Code Browser.

Or you can use 'Find in Files'.

Or with 0.9.29 you can compile and wait for the error message
'identifier not found', right click on the message and use 'Search
identifier'.


Mattias
 




More information about the Lazarus mailing list