Skip to content

Commit 9300cbc

Browse files
committed
enhance: turn two more TButtons into TBitBtn with icon
1 parent b100479 commit 9300cbc

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

source/about.lfm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ object AboutBox: TAboutBox
408408
TabOrder = 3
409409
OnClick = btnDonatedOKClick
410410
end
411-
object btnDonate: TButton
411+
object btnDonate: TBitBtn
412412
AnchorSideLeft.Control = ImageHeidisql
413413
AnchorSideLeft.Side = asrBottom
414414
AnchorSideTop.Control = editDonated
@@ -426,6 +426,8 @@ object AboutBox: TAboutBox
426426
BorderSpacing.Around = 6
427427
Caption = 'Donate'
428428
Constraints.MinHeight = 50
429+
Images = MainForm.ImageListMain
430+
ImageIndex = 185
429431
ParentShowHint = False
430432
ShowHint = True
431433
TabOrder = 4

source/about.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TAboutBox = class(TForm)
2828
popupLabels: TPopupMenu;
2929
menuCopyLabel: TMenuItem;
3030
lblEnvironment: TLabel;
31-
btnDonate: TButton;
31+
btnDonate: TBitBtn;
3232
lnklblCompiler: TLabel;
3333
procedure OpenURL(Sender: TObject);
3434
procedure FormShow(Sender: TObject);

source/updatecheck.lfm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ object frmUpdateCheck: TfrmUpdateCheck
103103
OnClick = LinkLabelReleaseLinkClick
104104
end
105105
end
106-
object btnDonate: TButton
106+
object btnDonate: TBitBtn
107107
AnchorSideLeft.Control = Owner
108108
AnchorSideTop.Control = Owner
109109
AnchorSideRight.Control = Owner
@@ -115,6 +115,8 @@ object frmUpdateCheck: TfrmUpdateCheck
115115
Anchors = [akTop, akLeft, akRight]
116116
BorderSpacing.Around = 6
117117
Caption = 'Donate'
118+
Images = MainForm.ImageListMain
119+
ImageIndex = 185
118120
TabOrder = 0
119121
end
120122
object popupDownloadRelease: TPopupMenu

source/updatecheck.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface
77
uses
88
SysUtils, Classes, Forms, StdCtrls, IniFiles, Controls, Graphics,
99
apphelpers, ExtCtrls, extra_controls, StrUtils, Dialogs,
10-
Menus, Clipbrd, generic_types, DateUtils;
10+
Menus, Clipbrd, generic_types, DateUtils, Buttons;
1111

1212
type
1313

@@ -21,7 +21,7 @@ TfrmUpdateCheck = class(TExtForm)
2121
memoRelease: TMemo;
2222
popupDownloadRelease: TPopupMenu;
2323
CopydownloadURL1: TMenuItem;
24-
btnDonate: TButton;
24+
btnDonate: TBitBtn;
2525
procedure FormCreate(Sender: TObject);
2626
procedure FormDestroy(Sender: TObject);
2727
procedure LinkLabelReleaseLinkClick(Sender: TObject);

0 commit comments

Comments
 (0)