📄 selezionadir.pas
字号:
unit selezionadir;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
FileCtrl, StdCtrls, Buttons;
type
TSeleziona_directory = class(TForm)
DirectoryBox: TDirectoryListBox;
DriveComboBox1: TDriveComboBox;
Label1: TLabel;
Label2: TLabel;
percorso: TLabel;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
FileListBox1: TFileListBox;
Label4: TLabel;
private
{ Private declarations }
public
{ Public declarations }
Function Execute : boolean ;
Function Path : String ;
end;
var
Seleziona_directory: TSeleziona_directory;
percorso_dir : string ;
implementation
{$R *.DFM}
Function Tseleziona_Directory.Execute : boolean ;
begin
self.ShowModal ;
if self.ModalResult = mrOk then
begin
percorso_dir := percorso.caption ;
result := true ;
end
else
begin
percorso_dir := '' ;
result := False ;
end ;
end ;
Function TSeleziona_Directory.Path : string ;
begin
result := Percorso.caption ;
end ;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -