[Lazarus] Non visual programs that use components

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Sep 16 09:09:55 CEST 2010


2010/9/16 Frank Church <vfclists at gmail.com>:
> What type of projects should be chosen when picking the project type from
> the New menu?

Any of them. You just create the component in code:

uses unit_with_component;
...
var
  MyComponent: TMyComponent;
begin
  MyComponent := TMyComponent.Create(Application);
  // now do something with MyComponent, usually setting properties

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

In the uses clause: http://wiki.lazarus.freepascal.org/Uses

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list