[Lazarus] When do I need a component rather than a plain object?

Michael Van Canneyt michael at freepascal.org
Tue Nov 16 13:45:08 CET 2010

On Tue, 16 Nov 2010, Graeme Geldenhuys wrote:

> Not necessarily, if you use code folding (which is on by default in Lazarus
> IDE). fpGUI's UI Designer creates code as follows:
> procedure TMainForm.AfterCreate;
> begin
>  {%region 'Auto-generated GUI code' -fold}   [...]
> end;
> So with Lazarus IDE's code folding, by default the above is all that the
> developer will see, unless they expand that code-folding region themselves.

It's the first thing I remove. I inadvertantly destroyed 
this generated-and-folded code on more than one occasion :(

Just to say that use cases vary. There is no one-size-fits-all solution.


More information about the Lazarus mailing list