I got it sorted...

Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Chris Crowe
Sent: Monday, 27 September 1999 21:21
To: Multiple recipients of list Delphi
Subject: [DUG]: Delphi5: Constructor XXX.Create(Aowner : TComponent);


Delphi5: Constructor XXX.Create(Aowner : TComponent);

How do I detemine who the owner is that is passed to the constructor of my
component in Delphi 5?

I have tried using this code

if (Aowner is TFrame) then
else { assume AOwner is a TForm }

But I get invalid typecast....

Is there any way of knowing what the control is being dropped on to?; ie a
form or a DataModule or a TFrame?

I need to know as the control interfacts with the form, and I hope to
enhance that to include the new TFrame component.

Chris Crowe


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to