📄 filedlg.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 + -