Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-02

Adding component to IDE

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

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.

Reply by email