var
  frm: TForm2;//定义窗口类
begin
  PageControl1.activepage:=tabsheet1;
  if Panel1.ControlCount = 0 then begin
    frm := Tform2.Create(self);
    frm.Parent := Panel1;
    frm.BorderStyle := bsnone;
    frm.WindowState := wsmaximized;
    if skindata1.active then
      skindata1.AddNestForm(self,frm);
    frm.Visible := True;
  end;
end;

 

var frm:Tframe3;//定义窗口类
begin
  PageControl1.activepage:=tabsheet2;
  if Panel2.ControlCount = 0 then begin
    frm := Tframe3.Create(self);
    frm.Parent := Panel2;
    //skindata1.AddNestForm(self,frm);
    frm.Visible := True;
  end;
end;

 

//释放

begin
  if Panel2.ControlCount > 0 then
    TFrame(Panel2.Controls[0]).free;
end;

相关文章:

  • 2021-09-02
  • 2021-09-18
  • 2022-12-23
  • 2021-09-24
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2021-12-01
  • 2022-12-23
  • 2022-01-21
  • 2021-09-12
相关资源
相似解决方案