💄 Enable UI scaling

This commit is contained in:
2022-05-07 11:59:04 +02:00
parent 900603dd00
commit 5e47564252
21 changed files with 1367 additions and 1288 deletions
+65 -57
View File
@@ -1,11 +1,11 @@
inherited frmBoundaries: TfrmBoundaries
Left = 445
Height = 164
Height = 162
Top = 332
Width = 402
Width = 410
Caption = 'Boundaries'
ClientHeight = 164
ClientWidth = 402
ClientHeight = 162
ClientWidth = 410
OnCreate = FormCreate
object gbZRestriction: TGroupBox[0]
AnchorSideLeft.Control = Owner
@@ -17,18 +17,19 @@ inherited frmBoundaries: TfrmBoundaries
BorderSpacing.Left = 4
BorderSpacing.Top = 4
Caption = 'Restrict Height'
ClientHeight = 139
ClientWidth = 192
ClientHeight = 132
ClientWidth = 194
TabOrder = 0
object lblMinZ: TLabel
AnchorSideLeft.Control = tbMinZ
AnchorSideTop.Control = seMinZ
AnchorSideTop.Side = asrCenter
Left = 4
Height = 15
Top = 10
Width = 77
Height = 23
Top = 9
Width = 93
Caption = 'Minimum Z:'
Color = clDefault
Layout = tlCenter
ParentColor = False
end
@@ -36,10 +37,10 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = gbZRestriction
AnchorSideRight.Control = gbZRestriction
AnchorSideRight.Side = asrBottom
Left = 136
Height = 27
Left = 128
Height = 33
Top = 4
Width = 52
Width = 62
Anchors = [akTop, akRight]
BorderSpacing.Top = 4
BorderSpacing.Right = 4
@@ -56,9 +57,9 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideRight.Control = gbZRestriction
AnchorSideRight.Side = asrBottom
Left = 4
Height = 37
Top = 35
Width = 184
Height = 47
Top = 41
Width = 186
Frequency = 10
Max = 127
Min = -128
@@ -74,10 +75,11 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = seMaxZ
AnchorSideTop.Side = asrCenter
Left = 4
Height = 15
Top = 82
Width = 81
Height = 23
Top = 97
Width = 97
Caption = 'Maximum Z:'
Color = clDefault
Layout = tlCenter
ParentColor = False
end
@@ -86,10 +88,10 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = seMinZ
AnchorSideRight.Side = asrBottom
Left = 136
Height = 27
Top = 76
Width = 52
Left = 128
Height = 33
Top = 92
Width = 62
Anchors = [akTop, akRight]
MaxValue = 127
MinValue = -128
@@ -104,9 +106,9 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideRight.Control = gbZRestriction
AnchorSideRight.Side = asrBottom
Left = 4
Height = 37
Top = 107
Width = 184
Height = 47
Top = 129
Width = 186
Frequency = 10
Max = 127
Min = -128
@@ -127,21 +129,21 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 204
Height = 156
Height = 154
Top = 4
Width = 194
Width = 202
Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Around = 4
Caption = 'Restrict View Range'
ClientHeight = 139
ClientWidth = 190
ClientHeight = 130
ClientWidth = 200
TabOrder = 1
object seMinX: TSpinEdit
AnchorSideLeft.Control = lblX
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = seMaxX
Left = 20
Height = 27
Left = 22
Height = 33
Top = 4
Width = 74
BorderSpacing.Left = 4
@@ -152,8 +154,8 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = gbViewRestriction
AnchorSideRight.Control = gbViewRestriction
AnchorSideRight.Side = asrBottom
Left = 112
Height = 27
Left = 122
Height = 33
Top = 4
Width = 74
Anchors = [akTop, akRight]
@@ -168,9 +170,9 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = seMinX
AnchorSideRight.Side = asrBottom
Left = 20
Height = 27
Top = 39
Left = 22
Height = 33
Top = 45
Width = 74
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 8
@@ -182,9 +184,9 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = seMinY
AnchorSideRight.Control = seMaxX
AnchorSideRight.Side = asrBottom
Left = 112
Height = 27
Top = 39
Left = 122
Height = 33
Top = 45
Width = 74
Anchors = [akTop, akLeft, akRight]
OnChange = seMaxYChange
@@ -195,11 +197,12 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = seMinX
AnchorSideTop.Side = asrCenter
Left = 4
Height = 15
Top = 10
Width = 12
Height = 23
Top = 9
Width = 14
BorderSpacing.Left = 4
Caption = 'X:'
Color = clDefault
ParentColor = False
end
object lblY: TLabel
@@ -207,10 +210,11 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideTop.Control = seMinY
AnchorSideTop.Side = asrCenter
Left = 4
Height = 15
Top = 45
Width = 9
Height = 23
Top = 50
Width = 13
Caption = 'Y:'
Color = clDefault
ParentColor = False
end
object lblXSep: TLabel
@@ -218,38 +222,40 @@ inherited frmBoundaries: TfrmBoundaries
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = seMaxX
AnchorSideTop.Side = asrCenter
Left = 98
Height = 15
Top = 10
Width = 13
Left = 100
Height = 23
Top = 9
Width = 17
BorderSpacing.Left = 4
Caption = '—'
Color = clDefault
ParentColor = False
end
object lblYSep: TLabel
AnchorSideLeft.Control = lblXSep
AnchorSideTop.Control = seMinY
AnchorSideTop.Side = asrCenter
Left = 98
Height = 15
Top = 45
Width = 13
Left = 100
Height = 23
Top = 50
Width = 17
Caption = '—'
Color = clDefault
ParentColor = False
end
object btnSelectArea: TButton
Left = 74
Left = 5
Height = 25
Top = 76
Top = 95
Width = 112
Caption = 'Select Area'
OnClick = btnSelectAreaClick
TabOrder = 4
end
object btnClear: TButton
Left = 111
Left = 122
Height = 25
Top = 107
Top = 95
Width = 75
Caption = 'Clear'
OnClick = btnClearClick
@@ -257,5 +263,7 @@ inherited frmBoundaries: TfrmBoundaries
end
end
inherited tmClose: TTimer[2]
Left = 24
Top = 24
end
end