Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
digao-dalpiaz committed Mar 25, 2024
1 parent eaa2585 commit 3d54960
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/Vcl.DamDialog.pas
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ procedure TFrmDamDialogDyn.BuildButtons;
I: Integer;
Btn: TButton;
Names: array[1..3] of string;
BtnText: string;
begin
case DamMsg.Buttons of
dbOne, dbOK: NumButtons := 1;
Expand All @@ -408,11 +407,9 @@ procedure TFrmDamDialogDyn.BuildButtons;

for I := 1 to NumButtons do
begin
BtnText := Names[I];

Btn := TButton.Create(Self);
Btn.Parent := BoxFloatBtns;
Btn.{$IFDEF FMX}Text{$ELSE}Caption{$ENDIF} := BtnText;
SetButtonText(Btn, Names[I]);
Btn.OnClick := OnBtnClick;
Btn.Tag := I;
{$IFDEF FMX}
Expand Down

0 comments on commit 3d54960

Please sign in to comment.