added default and cancel button to calendar dialog

git-svn-id: trunk@7836 -
This commit is contained in:
vincents 2005-09-26 13:57:17 +00:00
parent 49c2b27945
commit 0b932a761a
2 changed files with 2 additions and 1 deletions

View File

@ -1220,6 +1220,7 @@ begin
ModalResult:=mrOK;
OnClick:=@GetNewDate;
Align:=alRight;
Default:=True;
end;
cancelButton:=TButton.Create(Self);
@ -1231,6 +1232,7 @@ begin
Width:=DF.Canvas.TextWidth(CancelCaption)+2*dw;;
ModalResult:=mrCancel;
Align:=alLeft;
Cancel:=True;
end;
Result:=DF.ShowModal=mrOK;

View File

@ -861,7 +861,6 @@ begin
Append(DebugText^)
else
Rewrite(DebugText^);
writeln(DebugText^,'Created.');
end
else begin
if TextRec(Output).Mode=fmClosed then