[fpc-pascal] When do I need a component rather than a plain object?

Frank Church vfclists at gmail.com
Sun Nov 14 16:32:30 CET 2010

Does TObject have all the capabilities of TComponent apart from things like
streaming and being used from the IDE component palette?

I want to create an object which has all the capabilities like getting and
setting properties, and I want to know whether I need to inherit from
TObject or from something further down the hierarchy.

Another aspect is ownership. Does ownership require objects to be derived
from TComponent?

Is a TPersistent adequate if manipulating the object from the IDE isn't

Last but not the least, is the FreePascal TObject/TComponent system more or
less the same as Delphi's, or are there some major differences?

PS. I asked this question in the Lazarus forum, but on reflection it is a
FreePascal question and belongs here instead.
Frank Church

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101114/0402b779/attachment.html>

More information about the fpc-pascal mailing list