💄 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
+118 -115
View File
@@ -1,21 +1,20 @@
object frmRegionControl: TfrmRegionControl
Left = 247
Height = 516
Height = 645
Top = 139
Width = 775
Width = 1007
ActiveControl = vstRegions
Caption = 'Region Control'
ClientHeight = 516
ClientWidth = 775
ClientHeight = 645
ClientWidth = 1007
DesignTimePPI = 120
Font.Height = -14
Font.Height = -18
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
OnShow = FormShow
Position = poOwnerFormCenter
ShowInTaskBar = stAlways
LCLVersion = '2.3.0.0'
object sbArea: TScrollBox
AnchorSideLeft.Control = vstRegions
AnchorSideLeft.Side = asrBottom
@@ -23,21 +22,21 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = btnClose
Left = 200
Height = 372
Left = 250
Height = 582
Top = 0
Width = 460
HorzScrollBar.Page = 456
VertScrollBar.Page = 368
Width = 757
HorzScrollBar.Page = 164
VertScrollBar.Page = 164
Anchors = [akTop, akLeft, akRight, akBottom]
ClientHeight = 368
ClientWidth = 456
ClientHeight = 580
ClientWidth = 755
TabOrder = 0
object pbArea: TPaintBox
Left = 0
Height = 131
Height = 164
Top = 0
Width = 131
Width = 164
OnMouseDown = pbAreaMouseDown
OnMouseMove = pbAreaMouseMove
OnPaint = pbAreaPaint
@@ -48,12 +47,12 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 532
Height = 31
Top = 374
Width = 80
Left = 895
Height = 39
Top = 594
Width = 100
Anchors = [akRight, akBottom]
BorderSpacing.Around = 10
BorderSpacing.Around = 12
Caption = 'Close'
OnClick = btnCloseClick
TabOrder = 1
@@ -62,12 +61,12 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Control = btnClose
AnchorSideBottom.Control = btnClose
AnchorSideBottom.Side = asrBottom
Left = 460
Height = 31
Top = 374
Width = 80
Left = 783
Height = 39
Top = 594
Width = 100
Anchors = [akRight, akBottom]
BorderSpacing.Right = 5
BorderSpacing.Right = 6
Caption = 'Save'
Enabled = False
OnClick = btnSaveClick
@@ -78,20 +77,21 @@ object frmRegionControl: TfrmRegionControl
AnchorSideTop.Control = Owner
AnchorSideBottom.Control = btnAddRegion
Left = 0
Height = 130
Height = 203
Top = 0
Width = 200
Width = 250
Anchors = [akTop, akLeft, akBottom]
DefaultNodeHeight = 26
DefaultText = 'Node'
Header.AutoSizeIndex = 0
Header.Columns = <
item
Position = 0
Text = 'Regions'
Width = 200
Width = 248
end>
Header.DefaultHeight = 21
Header.Height = 36
Header.DefaultHeight = 26
Header.Height = 45
Header.Options = [hoAutoResize, hoVisible]
Header.ParentFont = True
Header.Style = hsFlatButtons
@@ -107,13 +107,13 @@ object frmRegionControl: TfrmRegionControl
object btnAddRegion: TSpeedButton
AnchorSideLeft.Control = vstRegions
AnchorSideBottom.Control = spRegionsArea
Left = 5
Height = 28
Left = 6
Height = 35
Hint = 'Add region'
Top = 128
Width = 28
Top = 209
Width = 35
Anchors = [akLeft, akBottom]
BorderSpacing.Around = 5
BorderSpacing.Around = 6
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
2000000000000004000064000000640000000000000000000000000000000000
@@ -159,13 +159,13 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Side = asrBottom
AnchorSideBottom.Control = btnAddRegion
AnchorSideBottom.Side = asrBottom
Left = 38
Height = 28
Left = 47
Height = 35
Hint = 'Delete region'
Top = 128
Width = 28
Top = 209
Width = 35
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 5
BorderSpacing.Left = 6
Enabled = False
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
@@ -214,19 +214,20 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Control = spRegionsArea
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = btnDeleteArea
Left = 5
Height = 121
Top = 222
Width = 152
Left = 6
Height = 177
Top = 284
Width = 238
Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Left = 5
BorderSpacing.Right = 5
BorderSpacing.Bottom = 5
BorderSpacing.Left = 6
BorderSpacing.Right = 6
BorderSpacing.Bottom = 6
DefaultNodeHeight = 26
DefaultText = 'Node'
Header.AutoSizeIndex = 0
Header.Columns = <>
Header.DefaultHeight = 21
Header.Height = 29
Header.DefaultHeight = 26
Header.Height = 36
Header.MainColumn = -1
Header.Options = [hoColumnResize, hoDrag]
TabOrder = 4
@@ -241,13 +242,13 @@ object frmRegionControl: TfrmRegionControl
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = spRegionsArea
AnchorSideRight.Side = asrBottom
Left = 5
Height = 13
Top = 206
Width = 152
Left = 6
Height = 26
Top = 258
Width = 238
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 5
BorderSpacing.Right = 5
BorderSpacing.Left = 6
BorderSpacing.Right = 6
Caption = 'Area:'
Color = clDefault
ParentColor = False
@@ -258,9 +259,9 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Side = asrBottom
Cursor = crVSplit
Left = 0
Height = 6
Top = 200
Width = 160
Height = 8
Top = 250
Width = 250
Align = alNone
Anchors = [akTop, akLeft, akRight]
AutoSnap = False
@@ -269,11 +270,11 @@ object frmRegionControl: TfrmRegionControl
object btnAddArea: TSpeedButton
AnchorSideTop.Control = btnDeleteArea
AnchorSideRight.Control = btnDeleteArea
Left = 37
Height = 28
Left = 67
Height = 35
Hint = 'Add area'
Top = 379
Width = 28
Top = 467
Width = 35
Anchors = [akTop, akRight]
Enabled = False
Glyph.Data = {
@@ -320,14 +321,14 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Control = vstArea
AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Control = seX1
Left = 86
Height = 28
Left = 108
Height = 35
Hint = 'Delete area'
Top = 297
Width = 28
Top = 467
Width = 35
Anchors = [akLeft, akBottom]
BorderSpacing.Bottom = 5
BorderSpacing.Around = 5
BorderSpacing.Bottom = 6
BorderSpacing.Around = 6
Enabled = False
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
@@ -373,11 +374,11 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Control = btnDeleteArea
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = btnDeleteArea
Left = 119
Height = 28
Left = 149
Height = 35
Hint = 'Delete all areas'
Top = 379
Width = 28
Top = 467
Width = 35
Enabled = False
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
@@ -423,11 +424,11 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = seX1
AnchorSideTop.Side = asrCenter
Left = 5
Height = 13
Top = 421
Width = 6
BorderSpacing.Left = 5
Left = 6
Height = 26
Top = 519
Width = 11
BorderSpacing.Left = 6
Caption = 'X'
Color = clDefault
Enabled = False
@@ -435,13 +436,15 @@ object frmRegionControl: TfrmRegionControl
end
object seX1: TSpinEdit
AnchorSideLeft.Control = seY1
AnchorSideRight.Control = seY1
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = seY1
Left = 21
Height = 21
Top = 333
Width = 62
Anchors = [akLeft, akBottom]
BorderSpacing.Bottom = 10
Left = 28
Height = 36
Top = 514
Width = 76
Anchors = [akLeft, akRight, akBottom]
BorderSpacing.Bottom = 12
Enabled = False
OnChange = seX1Change
TabOrder = 6
@@ -451,11 +454,11 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Control = seX1
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = seX1
Left = 94
Height = 21
Top = 416
Width = 62
BorderSpacing.Left = 10
Left = 116
Height = 36
Top = 514
Width = 76
BorderSpacing.Left = 12
Enabled = False
OnChange = seX1Change
TabOrder = 7
@@ -465,10 +468,10 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Control = lblX
AnchorSideTop.Control = seY1
AnchorSideTop.Side = asrCenter
Left = 5
Height = 13
Top = 458
Width = 5
Left = 6
Height = 26
Top = 567
Width = 10
Caption = 'Y'
Color = clDefault
Enabled = False
@@ -480,16 +483,16 @@ object frmRegionControl: TfrmRegionControl
AnchorSideRight.Control = seX1
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = btnGrab1
Left = 21
Height = 21
Top = 362
Width = 53
Anchors = [akLeft, akRight, akBottom]
BorderSpacing.Left = 10
Left = 28
Height = 36
Top = 562
Width = 76
Anchors = [akLeft, akBottom]
BorderSpacing.Left = 12
Enabled = False
OnChange = seX1Change
TabOrder = 8
Value = 1
Value = 2
end
object seY2: TSpinEdit
AnchorSideLeft.Control = seX2
@@ -497,12 +500,12 @@ object frmRegionControl: TfrmRegionControl
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = seX2
AnchorSideRight.Side = asrBottom
Left = 94
Height = 21
Top = 452
Width = 50
Left = 116
Height = 36
Top = 562
Width = 76
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 10
BorderSpacing.Top = 12
Enabled = False
OnChange = seX1Change
TabOrder = 9
@@ -513,13 +516,13 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 40
Height = 28
Left = 49
Height = 35
Hint = 'Grab coordinates from the main window.'
Top = 381
Width = 28
Top = 604
Width = 35
Anchors = [akLeft, akBottom]
BorderSpacing.Around = 5
BorderSpacing.Around = 6
Enabled = False
Glyph.Data = {
36040000424D3604000000000000360000002800000010000000100000000100
@@ -566,11 +569,11 @@ object frmRegionControl: TfrmRegionControl
AnchorSideLeft.Side = asrCenter
AnchorSideBottom.Control = btnGrab1
AnchorSideBottom.Side = asrBottom
Left = 111
Height = 28
Left = 137
Height = 35
Hint = 'Grab coordinates from the main window.'
Top = 381
Width = 28
Top = 604
Width = 35
Anchors = [akLeft, akBottom]
Enabled = False
Glyph.Data = {
@@ -614,8 +617,8 @@ object frmRegionControl: TfrmRegionControl
ParentShowHint = False
end
object pmRegions: TPopupMenu
Left = 60
Top = 54
Left = 75
Top = 68
object mnuAddRegion: TMenuItem
Caption = 'Add'
OnClick = mnuAddRegionClick