⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filedlg.pas

📁 这是一套全面的网络组件
💻 PAS
字号:
unit fileDlg;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TFileExistsDialog = class(TForm)
    lblCaption: TLabel;
    btnReplace: TButton;
    btnResume: TButton;
    btnCancel: TButton;
  public
    class function ShowFileDialog(const AFileName: string): Integer;
  end;

var
  FileExistsDialog: TFileExistsDialog;

implementation

{$R *.dfm}

{ TFileExistsDialog }

class function TFileExistsDialog.ShowFileDialog(
  const AFileName: string): Integer;
var
  dlg: TFileExistsDialog;
begin
  dlg := TFileExistsDialog.Create(nil);
  try
    dlg.lblCaption.Caption := Format('File already exists %s', [AFileName]);
    Result := dlg.ShowModal();
  finally
    dlg.Free();
  end;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -