Board index » delphi » Visual Component in non-visual application

Visual Component in non-visual application

Hello,

I would like to make a non-visual application using  visual components
like TQuery. However, the constructor needs a  TComponent parameter :
constructor Create(AOwner: TComponent);

What should I do ?

Thanks for your help
Michael

 

Re:Visual Component in non-visual application


Use nil as the owner.

  Query1 := TQuery.Create(nil);

Quote
Michael KAZMIERCZAK <m_kazmierc...@ciriel.fr> wrote in message

news:385905B5.A6083D34@ciriel.fr...
Quote
> Hello,

> I would like to make a non-visual application using  visual components
> like TQuery. However, the constructor needs a  TComponent parameter :
> constructor Create(AOwner: TComponent);

> What should I do ?

> Thanks for your help
> Michael

Re:Visual Component in non-visual application


Thanks Eddie

Michael

Other Threads