MyDialogFrm.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:1k
- unit MyDialogFrm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, Buttons, FileCtrl;
- type
- TfrmDialog = class(TForm)
- DirectoryListBox: TDirectoryListBox;
- DriveComboBox: TDriveComboBox;
- btnOK: TBitBtn;
- btnCancel: TBitBtn;
- procedure btnOKClick(Sender: TObject);
- procedure btnCancelClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- Flag : Boolean;
- { Public declarations }
- end;
- var
- frmDialog: TfrmDialog;
- implementation
- {$R *.dfm}
- procedure TfrmDialog.btnOKClick(Sender: TObject);
- begin
- Flag := True;
- close;
- end;
- procedure TfrmDialog.btnCancelClick(Sender: TObject);
- begin
- close;
- end;
- procedure TfrmDialog.FormCreate(Sender: TObject);
- begin
- Flag := False;
- end;
- end.