fatdlg.pas

来自「磁盘文件恢复源代码」· PAS 代码 · 共 45 行

PAS
45
字号
unit FATdlg;

interface

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

type
  TFATSelectDialog = class(TForm)
    Label4: TLabel;
    ComboBoxFAT: TComboBox;
    Label5: TLabel;
    Panel1: TPanel;
    Button1: TButton;
    Button2: TButton;
  private
    { Private declarations }
  public
    FATno: byte;
    { Public declarations }
    function execute: boolean;
  end;

var
  FATSelectDialog: TFATSelectDialog;

implementation

{$R *.dfm}

function TfatSelectDialog.execute: boolean;
var
  res: integer;
begin
  res:=showmodal;
  if res = mrOK then
  begin
    FATno:=ComboBoxFAT.itemindex;
  end;
  result:=(res = mrOK);
end;

end.

⌨️ 快捷键说明

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