mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 14:09:31 +02:00
added default and cancel button to calendar dialog
git-svn-id: trunk@7836 -
This commit is contained in:
parent
49c2b27945
commit
0b932a761a
@ -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;
|
||||
|
@ -861,7 +861,6 @@ begin
|
||||
Append(DebugText^)
|
||||
else
|
||||
Rewrite(DebugText^);
|
||||
writeln(DebugText^,'Created.');
|
||||
end
|
||||
else begin
|
||||
if TextRec(Output).Mode=fmClosed then
|
||||
|
Loading…
Reference in New Issue
Block a user