Du kannst mit dieser Methode eine komplette Form in einem Panel (Name=panContainer) anzzeigen. Vielleicht hilft dir das ja schon mal weiter:
Delphi-Quellcode:
procedure TfrmMain.ChangeModule (ModuleNum : integer) ;
var
NewDemoClass: TFormClass;
NewDemo: TForm;
begin
case ModuleNum of
1: NewDemoClass := TForm1;
2: NewDemoClass := TForm2;
else
NewDemoClass := nil;
end;
{ panContainer = TPanel }
if (panContainer.ControlCount = 0) or not (panContainer.Controls[0] is NewDemoClass) then
begin
if panContainer.ControlCount > 0 then
panContainer.Controls[0].Free;
if Assigned(NewDemoClass) then
begin
NewDemo := NewDemoClass.Create(Self);
NewDemo.Hide;
NewDemo.BorderStyle := bsNone;
NewDemo.Parent := panContainer;
NewDemo.Align := alClient;
NewDemo.Show;
end;
end;
end ;