[Lazarus] Adding component to IDE
Michael Van Canneyt
michael at freepascal.org
Sun Feb 24 14:09:50 CET 2019
Hi,
How can I add a component instance to a datamodule or form ?
I know these 2:
procedure AddComponent(const NewRegisteredComponent: TRegisteredComponent;
const NewComponentClass: TComponentClass;
const NewParent: TComponent;
const NewLeft,NewTop,NewWidth,NewHeight: Integer); virtual; abstract;
procedure AddComponentCheckParent(var NewParent: TComponent;
const OriginComponent: TComponent; const OriginWinControl: TWinControl;
const NewComponentClass: TComponentClass); virtual; abstract;
But they are not suitable for my purpose. The component instance is already created
in memory. I just need to be able to "put it on the form".
Michael.
More information about the lazarus
mailing list