procedure TBM_BENMENF.hui1Click(Sender: TObject);
begin
N_cancelClick(Sender);
end;
procedure TBM_BENMENF.freshClick(Sender: TObject);
begin
N_refreshClick(Sender);
end;
end.
3.3 文件批量处理界面与代码设计实现
代码设计:
unit BM_CHANGEFILEU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, Grids, StdCtrls, ComCtrls, math,ExtCtrls;
type
TBM_CHANGEFILEF = class(TForm)
Panel1: TPanel;
GroupBox1: TGroupBox;
Label4: TLabel;
CheckBox1: TCheckBox;
Memo1: TMemo;
rnlist1: TStringGrid;
OpenDialog1: TOpenDialog;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
SpeedButton3: TSpeedButton;
SpeedButton4: TSpeedButton;
ComboBox1: TComboBox;
Label2: TLabel;
Panel2: TPanel;
RadioB1: TRadioButton;
RadioB2: TRadioButton;
Panel3: TPanel;
LEdit1: TLabeledEdit;
UpDown1: TUpDown;
Label3: TLabel;
ComboBox2: TComboBox;
CheckBox2: TCheckBox;
ComboBox3: TComboBox;
Edit1: TEdit;
SpeedButton5: TSpeedButton;
Edit2: TEdit;
ListBox1: TListBox;
SpeedButton6: TSpeedButton;
procedure SpeedButton1Click(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
procedure SpeedButton4Click(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
procedure RadioB1Click(Sender: TObject);
procedure RadioB2Click(Sender: TObject);
procedure UpDown1ChangingEx(Sender: TObject; var AllowChange: Boolean;
NewValue: Smallint; Direction: TUpDownDirection);
procedure CheckBox2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure SpeedButton5Click(Sender: TObject);
procedure SpeedButton6Click(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
procedure SearchFile(path:string);
public
{ Public declarations }
end;
var
BM_CHANGEFILEF: TBM_CHANGEFILEF;
totanum:integer;
ii,tmplen:integer;
tmptstr:tstrings;
implementation
{$R *.dfm}
function getffname(ffname:string):string;
begin //只取文件名,不取扩展名
<< 上一页 [21] [22] [23] [24] [25] [26] 下一页