Main.pas
资源名称:第6章 多线程编程.rar [点击查看]
上传用户:gyjjlc
上传日期:2013-03-29
资源大小:2124k
文件大小:1k
源码类别:
多显示器编程
开发平台:
C++ Builder
- unit Main;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, PBFolderDialog;
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Edit2: TEdit;
- SelectFolder: TButton;
- Label1: TLabel;
- Label2: TLabel;
- PBFolderDialog1: TPBFolderDialog;
- procedure SelectFolderClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.DFM}
- procedure TForm1.SelectFolderClick(Sender: TObject);
- begin
- if PBFolderDialog1.Execute then
- begin
- Edit1.Text := PBFolderDialog1.Folder;
- Edit2.Text := PBFolderDialog1.DisplayName;
- end;
- end;
- end.
English
