Соединение мышью, панель линии и масштаба, ПКМ по полю - создать фигуру, поддержка высокого DPI

This commit is contained in:
DverkuOff 2026-11-25 11:10:29 +03:00
commit a08911920f

View file

@ -21,9 +21,9 @@ object frmShapes: TfrmShapes
TextHeight = 16
object tbrShapes: TToolBar
Left = 0
Top = 0
Top = 44
Width = 120
Height = 595
Height = 551
Align = alLeft
ButtonHeight = 56
ButtonWidth = 118
@ -69,9 +69,89 @@ object frmShapes: TfrmShapes
OnClick = btnLinkClick
end
end
object pnlLine: TPanel
Left = 0
Top = 0
Width = 960
Height = 44
Align = alTop
BevelOuter = bvNone
Color = 16447477
ParentBackground = False
TabOrder = 3
object lblColor: TLabel
Left = 12
Top = 13
Width = 90
Height = 16
Caption = #1053#1086#1074#1099#1077' '#1083#1080#1085#1080#1080':'
end
object lblWidth: TLabel
Left = 290
Top = 13
Width = 60
Height = 16
Caption = #1058#1086#1083#1097#1080#1085#1072
end
object lblWidthNum: TLabel
Left = 500
Top = 13
Width = 30
Height = 16
Caption = '2 px'
end
object lblZoom: TLabel
Left = 560
Top = 13
Width = 60
Height = 16
Caption = #1052#1072#1089#1096#1090#1072#1073
end
object lblZoomNum: TLabel
Left = 790
Top = 13
Width = 40
Height = 16
Caption = '100%'
end
object cbColor: TColorBox
Left = 110
Top = 10
Width = 165
Height = 22
Style = [cbCustomColors]
TabOrder = 0
OnChange = cbColorChange
OnGetColors = cbColorGetColors
end
object trkWidth: TTrackBar
Left = 350
Top = 8
Width = 145
Height = 30
Min = 1
Position = 2
TabOrder = 1
OnChange = trkWidthChange
end
object trkZoom: TTrackBar
Left = 625
Top = 8
Width = 160
Height = 30
Frequency = 25
LineSize = 25
Max = 200
Min = 50
PageSize = 25
Position = 100
TabOrder = 2
OnChange = trkZoomChange
end
end
object pnlField: TPanel
Left = 120
Top = 0
Top = 44
Width = 840
Height = 545
Align = alClient
@ -215,6 +295,28 @@ object frmShapes: TfrmShapes
OnClick = pmiLinkDeleteClick
end
end
object pmField: TPopupMenu
Images = imgShapes
Left = 888
Top = 264
object pmiNewTriangle: TMenuItem
Caption = #1057#1086#1079#1076#1072#1090#1100' '#1090#1088#1077#1091#1075#1086#1083#1100#1085#1080#1082
ImageIndex = 0
OnClick = pmiNewFigureClick
end
object pmiNewRectangle: TMenuItem
Tag = 1
Caption = #1057#1086#1079#1076#1072#1090#1100' '#1087#1088#1103#1084#1086#1091#1075#1086#1083#1100#1085#1080#1082
ImageIndex = 1
OnClick = pmiNewFigureClick
end
object pmiNewEllipse: TMenuItem
Tag = 2
Caption = #1057#1086#1079#1076#1072#1090#1100' '#1101#1083#1083#1080#1087#1089
ImageIndex = 2
OnClick = pmiNewFigureClick
end
end
object imgShapes: TImageList
Height = 24
Width = 24