v5.1 代码策略

This commit is contained in:
2026-11-24 21:51:58 +08:00
parent a98b5bc8c2
commit 8d8eec8e95
22 changed files with 2810 additions and 535 deletions
+61 -40
View File
@@ -28,7 +28,7 @@ object PolicyEditForm: TPolicyEditForm
object m_cbPolicy: TComboBox
Left = 87
Top = 41
Width = 165
Width = 160
Height = 23
AutoDropDown = True
AutoCloseUp = True
@@ -39,9 +39,9 @@ object PolicyEditForm: TPolicyEditForm
OnChange = OnPolicyChange
end
object m_btnAdd: TButton
Left = 271
Left = 258
Top = 41
Width = 75
Width = 56
Height = 23
Caption = #26032#24314
TabOrder = 1
@@ -66,33 +66,23 @@ object PolicyEditForm: TPolicyEditForm
Shape = bsFrame
ShowHint = False
end
object m_btnDelRow: TButton
Left = 4
object m_btnSave: TButton
Left = 198
Top = 313
Width = 80
Width = 54
Height = 25
Caption = #21024#38500#34892
Caption = #20445#23384
Enabled = False
TabOrder = 1
OnClick = OnDelRowClick
end
object m_btnSave: TButton
Left = 201
Top = 313
Width = 88
Height = 25
Caption = #20445#23384#25171#27861
Enabled = False
TabOrder = 2
OnClick = OnSaveClick
end
object m_btnSelect: TButton
Left = 297
Left = 322
Top = 313
Width = 103
Width = 76
Height = 25
Caption = #36873#25321#35813#25171#27861
TabOrder = 3
Caption = #20840#23616#20351#29992
TabOrder = 2
OnClick = OnSelectClick
end
object m_sg: TStringGrid
@@ -116,7 +106,7 @@ object PolicyEditForm: TPolicyEditForm
PopupMenu = m_pmSG
ScrollBars = ssVertical
ShowHint = False
TabOrder = 5
TabOrder = 4
OnDrawCell = SGDrawCell
OnKeyDown = SGKeyDown
OnMouseDown = SGMouseDown
@@ -140,7 +130,7 @@ object PolicyEditForm: TPolicyEditForm
ParentCtl3D = False
ParentShowHint = False
ShowHint = False
TabOrder = 4
TabOrder = 3
Visible = False
OnExit = EditorExit
OnKeyDown = EditorKeyDown
@@ -166,7 +156,7 @@ object PolicyEditForm: TPolicyEditForm
ParentColor = False
ParentCtl3D = False
ShowFrame = False
TabOrder = 7
TabOrder = 6
OnClick = OnRoadClick
end
object m_panChip: TPanel
@@ -178,9 +168,11 @@ object PolicyEditForm: TPolicyEditForm
BevelOuter = bvNone
Ctl3D = True
ParentCtl3D = False
TabOrder = 6
TabOrder = 5
OnClick = OnDeadClick
OnMouseMove = FormMouseMove
ExplicitLeft = -2
ExplicitTop = 23
object m_lblDead: TLabel
Left = 17
Top = 32
@@ -364,16 +356,6 @@ object PolicyEditForm: TPolicyEditForm
OnClick = OnChipOptionClick
end
end
object m_btnInsRow: TButton
Left = 92
Top = 313
Width = 80
Height = 25
Caption = #25554#20837#34892
Enabled = False
TabOrder = 8
OnClick = OnInsRowClick
end
object m_pCombo: TComboBox
Left = 72
Top = 146
@@ -389,11 +371,41 @@ object PolicyEditForm: TPolicyEditForm
Visible = False
OnKeyDown = ComboKeyDown
end
object m_btnExport: TButton
Left = 260
Top = 313
Width = 54
Height = 25
Caption = #23548#20986
Enabled = False
TabOrder = 7
OnClick = OnExportClick
end
object m_btnDelRow: TButton
Left = 4
Top = 313
Width = 80
Height = 25
Caption = #21024#38500#34892
Enabled = False
TabOrder = 8
OnClick = OnDelRowClick
end
object m_btnInsRow: TButton
Left = 92
Top = 313
Width = 80
Height = 25
Caption = #25554#20837#34892
Enabled = False
TabOrder = 9
OnClick = OnInsRowClick
end
end
object m_btnDel: TButton
Left = 352
Top = 40
Width = 75
Left = 315
Top = 41
Width = 56
Height = 23
Caption = #21024#38500
Enabled = False
@@ -440,17 +452,26 @@ object PolicyEditForm: TPolicyEditForm
OnDrawTab = TopDrawTab
OnMeasureTab = TopMeasureTab
end
object m_btnImport: TButton
Left = 372
Top = 41
Width = 56
Height = 23
Caption = #23548#20837
TabOrder = 6
OnClick = OnImportClick
end
object m_pmSG: TPopupMenu
AutoHotkeys = maManual
Left = 301
Top = 307
object miExport: TMenuItem
Caption = #23548#20986#34920#26684'...'
OnClick = OnExport
OnClick = OnGridExport
end
object miImport: TMenuItem
Caption = #23548#20837#34920#26684'...'
OnClick = OnImport
OnClick = OnGridImport
end
end
end