📄 frmlog1.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmLog
Caption = "日志管理"
ClientHeight = 6555
ClientLeft = 60
ClientTop = 345
ClientWidth = 7605
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6555
ScaleWidth = 7605
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdDelete
Caption = "删除"
Height = 375
Left = 4920
TabIndex = 16
Top = 6000
Width = 1095
End
Begin VB.CommandButton cmdFind
Caption = "查询"
Height = 375
Left = 2880
TabIndex = 15
Top = 6000
Width = 1095
End
Begin VB.CommandButton cmdOrder
Caption = "排序"
Height = 375
Left = 960
TabIndex = 14
Top = 6000
Width = 975
End
Begin VB.Frame Frame2
Caption = "查询"
Height = 2055
Left = 4680
TabIndex = 7
Top = 2760
Width = 2535
Begin VB.ComboBox Combo4
Height = 300
Left = 1200
TabIndex = 13
Top = 1440
Width = 1095
End
Begin VB.ComboBox Combo3
Height = 300
Left = 1200
TabIndex = 12
Top = 900
Width = 1095
End
Begin VB.ComboBox Combo2
Height = 300
Left = 1200
TabIndex = 11
Top = 360
Width = 1095
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "处警动作:"
Height = 180
Left = 240
TabIndex = 10
Top = 1500
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "触发时间:"
Height = 180
Left = 240
TabIndex = 9
Top = 960
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "布防名:"
Height = 180
Left = 240
TabIndex = 8
Top = 420
Width = 720
End
End
Begin VB.Frame Frame1
Caption = "排序"
Height = 1335
Left = 4680
TabIndex = 2
Top = 480
Width = 2415
Begin VB.OptionButton Option2
Caption = "降序"
Height = 255
Left = 1440
TabIndex = 6
Top = 840
Width = 735
End
Begin VB.OptionButton Option1
Caption = "升序"
Height = 255
Left = 240
TabIndex = 5
Top = 840
Width = 735
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frmLog.frx":0000
Left = 1200
List = "frmLog.frx":000A
TabIndex = 4
Text = "布防名"
Top = 300
Width = 975
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "关键字:"
Height = 180
Left = 240
TabIndex = 3
Top = 360
Width = 720
End
End
Begin MSComctlLib.ListView lvwLog
Height = 5055
Left = 240
TabIndex = 0
Top = 480
Width = 4335
_ExtentX = 7646
_ExtentY = 8916
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "显示区:"
Height = 180
Left = 240
TabIndex = 1
Top = 240
Width = 720
End
End
Attribute VB_Name = "frmLog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Resize()
Me.Height = frmSetpara.Height + 50
Me.Width = frmSetpara.Width + 500
Me.Left = (frmMain.Width - Me.Width) / 2
Me.Top = (frmMain.Height - Me.Height) / 2
lvwLog.Width = Me.Width * 0.6
lvwLog.Height = Me.Height * 0.8
lvwLog.Top = (Me.Height - lvwLog.Height) * 0.3
lvwLog.Left = (Me.Width - lvwLog.Width) * 0.07
Frame1.Top = lvwLog.Top
Frame2.Top = lvwLog.Top + 3000
Frame1.Left = lvwLog.Left + lvwLog.Width
Frame2.Left = Frame1.Left
cmdOrder.Top = (Me.Height - cmdOrder.Height) * 0.92
cmdDelete.Top = cmdOrder.Top
cmdFind.Top = cmdOrder.Top
Call makecolumns
End Sub
Private Sub makecolumns()
lvwLog.View = lvwReport
lvwLog.ColumnHeaders.Clear
lvwLog.ColumnHeaders.Add , , "布控名称", lvwLog.Width / 5
lvwLog.ColumnHeaders.Add , , "时间", lvwLog.Width / 5
lvwLog.ColumnHeaders.Add , , "动作", lvwLog.Width * 2.9 / 5
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -