copydlg.pas

来自「这是一套全面的网络组件」· PAS 代码 · 共 35 行

PAS
35
字号
unit CopyDlg;

interface

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

type
  TCopyDialog = class(TForm)
    Label1: TLabel;
    cbFolder: TComboBox;
    Button1: TButton;
    Button2: TButton;
    procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  CopyDialog: TCopyDialog;

implementation

{$R *.DFM}

procedure TCopyDialog.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
  if (ModalResult = mrOk) then CanClose := cbFolder.ItemIndex >= 0;
end;

end.

⌨️ 快捷键说明

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