Skip to content

Commit ba9442b

Browse files
committed
fix: wrong button positioning on macOS caused by differences of TButton/TBitBtn
1 parent 52b065a commit ba9442b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/connections.lfm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ object connform: Tconnform
11761176
TabOrder = 1
11771177
OnClick = btnSaveClick
11781178
end
1179-
object btnOpen: TButton
1179+
object btnOpen: TBitBtn
11801180
AnchorSideRight.Control = btnCancel
11811181
Left = 589
11821182
Height = 30
@@ -1192,7 +1192,7 @@ object connform: Tconnform
11921192
TabOrder = 3
11931193
OnClick = btnOpenClick
11941194
end
1195-
object btnCancel: TButton
1195+
object btnCancel: TBitBtn
11961196
AnchorSideRight.Control = btnMore
11971197
Left = 700
11981198
Height = 30

source/connections.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ interface
2121
{ Tconnform }
2222

2323
Tconnform = class(TExtForm)
24-
btnCancel: TButton;
25-
btnOpen: TButton;
24+
btnCancel: TBitBtn;
25+
btnOpen: TBitBtn;
2626
btnSave: TBitBtn;
2727
btnNew: TBitBtn;
2828
btnDelete: TBitBtn;

0 commit comments

Comments
 (0)