zoukankan      html  css  js  c++  java
  • 利用uniGUI中的TUniPageControl实现多页面

    远行效果:

     

    实现代码:

    procedure TfrmMain.OpenForm(Caption,FormClassName:string);
    var
      i:integer;
      sheet:TUniTabSheet;
    begin
      for i := 0 to pgeMain.PageCount-1  do
        begin
          if pgeMain.Pages[i].Caption=Caption then
             begin
             pgeMain.ActivePageIndex:=i;
             exit;
             end;
        end;


      sheet:=TUniTabSheet.Create(Self);
      sheet.Closable:=True;
      sheet.Caption:=Caption;
      sheet.PageIndex:=i+1;
      sheet.PageControl:=pgeMain;


      FCurrentFrame:=TUniFrameClass(FindClass(FormClassName)).Create(Self);


      FCurrentFrame.Align:=alClient;
      FCurrentFrame.Parent:=sheet;
      pgeMain.ActivePage:=sheet;


    end;
    ---------------------
    作者:liaobotao
    来源:CSDN
    原文:https://blog.csdn.net/liaobotao/article/details/7618737
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    Acdream 1174 Sum 暴力
    Acdream 1114 Number theory 莫比乌斯反演
    Acdream 1007 快速幂,模乘法
    UVa 10023
    UVa 11027
    UVa 11029
    UVa 10820
    UVa 10791
    UVa 11121
    UVa 106
  • 原文地址:https://www.cnblogs.com/tc310/p/10857777.html
Copyright © 2011-2022 走看看