首页 > 其他分享 >delphi 底部panel实现打开窗体显关闭标签

delphi 底部panel实现打开窗体显关闭标签

时间:2023-03-11 18:34:15浏览次数:41  
标签:begin aSpeedButton delphi TSpeedButton 窗体 aMDIForm Self panel

  • delphi 底部panel实现打开窗体显关闭标签
    //close form
    procedure TForm_Main.Close_MDI_Child_Form(const aMDIForm: TForm); 
    var i: Integer; aSpeedButton: TSpeedButton; 
    begin 
        aMDIForm.Close;
      for i := 0 to Self.MDIChildCount - 1 do
      begin
        if Self.MDIChildren[i] = aMDIForm then
          TSpeedButton(FindComponent('btn_' + aMDIForm.Name)).Free
        else
        begin
          aSpeedButton := TSpeedButton(FindComponent('btn_' + Self.MDIChildren[i].Name));
          aSpeedButton.Left := 5 + (aSpeedButton.Width + 10) * i;
        end;
      end;
    end;

     

标签:begin,aSpeedButton,delphi,TSpeedButton,窗体,aMDIForm,Self,panel
From: https://www.cnblogs.com/springcloud/p/17206670.html

相关文章