首页 > 其他 > 详细

利用uniGUI中的TUniPageControl实现多页面

时间:2019-05-13 17:54:26      阅读:346      评论:0      收藏:0      [点我收藏+]

远行效果:

 技术分享图片

 

 

实现代码:

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
版权声明:本文为博主原创文章,转载请附上博文链接!

利用uniGUI中的TUniPageControl实现多页面

原文:https://www.cnblogs.com/tc310/p/10857777.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!