Hi all.

I have just created a component subclassed of a TPanel.

I am trying to create another control inside the TPanel like so......

************
constructor TCustomPanel2.Create(aOwner:TPanel);
begin
  inherited create(AOwner);

  Planner := TPegPlanner.create(Self);

  Planner.left:=10;
  Planner.top:=10;
  Planner.width:=150;
  planner.height:=150;
  Planner.visible:=true;
end;
************

BUT the control does not appear ontop of the TPanel. Can anyone see why ???

Cjeers, Jeremy Coulter

********************************************************************************
This email or attachment(s) may contain confidential or legally privileged 
information intended for the sole use of the addressee(s). Any use, redistribution, 
disclosure, or reproduction of this message, except as intended, is prohibited. 
If you received this email in error, please notify the sender and erase all 
copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not 
represent those of Pegasus Health Ltd.

********************************************************************************
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to