?? unitformat.pas
字號:
unit UnitFormat;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, FileCtrl, ExtCtrls, Buttons;
type
TFrmFormat = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
FormatDrvCBox: TDriveComboBox;
RBtnQuick: TRadioButton;
RBtnFull: TRadioButton;
RBtnSys: TRadioButton;
BBtnYes: TBitBtn;
BBtnCancle: TBitBtn;
procedure BBtnYesClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure BBtnCancleClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmFormat: TFrmFormat;
implementation
uses Myfunction;
{$R *.dfm}
procedure TFrmFormat.BBtnYesClick(Sender: TObject);
var
FormatType:integer;
begin
FormatType:=1;
if RBtnQuick.Checked = true then FormatType:=1
else if RBtnFull.Checked = true then FormatType:=2
else if RBtnSys.Checked = true then FormatType:=3;
// showmessage(IntToStr(FormatType));
formatDrive(FormatDrvCBox.Drive,FormatType);//1:quick 2:full 3:sysonly
end;
procedure TFrmFormat.FormShow(Sender: TObject);
begin
FormatDrvCBox.ItemIndex:=0;
FormatDrvCBox.Drive:='a';
end;
procedure TFrmFormat.BBtnCancleClick(Sender: TObject);
begin
close;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -