Form inside a Tab***
- From: jodiepool@xxxxxxxxx
- Date: 29 Jun 2006 01:58:00 -0700
hi all;
I m trying to put a form inside a Tab***
this is the
the problem is that I get an error when compiling, "Cannot assign a
Read Only property" when trying to assign pagecontrol1 as the parent of
my form
here is the code:
var
aForm : TfrmSupplierInformation;
tab*** : TTab***;
begin
//Create a new tab ***
tab*** := TTab***.Create(PageControl1) ;
tab***.PageControl := PageControl1;
//create a form
aForm := TfrmSupplierInformation.Create(Tab***);
aForm.Parent := tab***;
aForm.Align := alClient;
aForm.BorderStyle := bsNone;
aForm.Visible := true;
// tab***.Caption := aForm.Caption;
//activate the ***
PageControl1.ActivePage := tab***;
end;
I ve seen similar code all over the web so there must be some property
I m setting wrong , Any ideas?
thanks
Jo
.
- Follow-Ups:
- Re: Form inside a Tab***
- From: Marco van de Voort
- Re: Form inside a Tab***
- Prev by Date: Replacing Delphi DBGrid with InfoPower
- Next by Date: Re: Form inside a Tab***
- Previous by thread: Replacing Delphi DBGrid with InfoPower
- Next by thread: Re: Form inside a Tab***
- Index(es):