escape closes dialog (issue #1143)

git-svn-id: trunk@7634 -
This commit is contained in:
vincents 2005-09-06 09:55:11 +00:00
parent cba602c612
commit e3102ae1be
2 changed files with 2 additions and 2 deletions

View File

@ -160,6 +160,7 @@ begin
Top:= Self.ClientHeight - Height - 4;
Kind:= bkCancel;
Anchors:= [akBottom, akRight];
Cancel:= true;
end;
OkButton:=TBitBtn.Create(Self);
@ -169,6 +170,7 @@ begin
Top:= CancelButton.Top;
Kind:= bkOk;
Anchors:= [akBottom, akRight];
Default:= true;
end;
IDEDialogLayoutList.ApplyLayout(Self, 430, 375);

View File

@ -159,7 +159,6 @@ end;
//Select new image file and add in list
procedure TImageListEditorDlg.OnClickAdd(Sender: TObject);
Var OpenDlg: TOpenDialog;
FileName: String;
i : Integer;
begin
Opendlg := TOpenDialog.Create(Self);
@ -172,7 +171,6 @@ begin
If OpenDlg.Execute then
begin
fDirName:=ExtractFilePath(OpenDlg.FileName); //save the directory
FileName:=OpenDlg.FileName;
for i := 0 to OpenDlg.Files.Count - 1 do
AddImageToList(OpenDlg.Files[i]);
end;