?? dirdlgu.pas
字號:
unit DirDlgU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, FileCtrl, ExtCtrls,CommXU;
type
TDir4 = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
DriveComboBox1: TDriveComboBox;
DirectoryListBox1: TDirectoryListBox;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Dir4: TDir4;
implementation
{$R *.dfm}
procedure TDir4.Button1Click(Sender: TObject);
begin
Comm1.DirLabel:=trim(DirectoryListBox1.Directory);
Close;
end;
procedure TDir4.Button2Click(Sender: TObject);
begin
Comm1.DirLabel:='';
Close;
end;
procedure TDir4.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:=Cafree;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -