USEGEAR

导航

TdxpageControl融合窗口和free

    for I := cxpgcntrl1.PageCount - 1  downto 0do
    begin                              
      if cxpgcntrl1.Pages[i].Caption <> '首页' then
        begin
          cxpgcntrl1.Pages[i].Free;
          if cxpgcntrl1.PageCount=1 then Break
        end;
    end;

 

posted on 2020-01-27 12:33  USEGEAR  阅读(188)  评论(0编辑  收藏  举报