I did a quick test that worked for me with a TGroupBox.

procedure TForm1.btn1Click(Sender: TObject);
Var
  FGBox : TGroupBox;
begin
  FGBox := TGroupBox.Create(Form1);
  FGBox.Align := alClient;
  FGBox.Caption := FGBox.ClassName;
  FGBox.Parent := Panel1;
end;

Showed up on Panel1 just fine on this end.  If this still doesn't work for
you maybe you can post your code and we can try that route.

Robert

On Fri, Oct 30, 2009 at 6:40 PM, totallyfreeenergy <
[email protected]> wrote:

>
>
> One more question about dynamic instantiation of VCL components....
> When I try to instantiate on a groupbox or Panel and set the Parent to
> groupbox1 or Panel1 it is not working. Compiles and executes without any
> errors. However on objects instantiated.
>
>
> TFE
> http://totallyfreeenergy.zxq.net
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to