📄 frmmain.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Caption = "信号机监控软件 "
ClientHeight = 9480
ClientLeft = 150
ClientTop = 720
ClientWidth = 10920
FillColor = &H00C0C0C0&
Icon = "FrmMain.frx":0000
LinkTopic = "form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "FrmMain.frx":06C2
ScaleHeight = 9480
ScaleWidth = 10920
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 13
Top = 0
Width = 10920
_ExtentX = 19262
_ExtentY = 741
ButtonWidth = 609
Appearance = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 9
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "打开"
Object.ToolTipText = "打开"
ImageKey = "Open"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "保存"
Object.ToolTipText = "保存"
ImageKey = "Save"
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "打印"
Object.ToolTipText = "打印"
ImageKey = "Print"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "复制"
Object.ToolTipText = "复制"
ImageKey = "Copy"
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "剪切"
Object.ToolTipText = "剪切"
ImageKey = "Cut"
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "粘贴"
Object.ToolTipText = "粘贴"
ImageKey = "Paste"
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "撤消"
Object.ToolTipText = "撤消"
ImageKey = "Undo"
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "重复"
Object.ToolTipText = "重复"
ImageKey = "Redo"
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "返回"
Object.ToolTipText = "返回"
ImageKey = "Back"
EndProperty
EndProperty
End
Begin VB.TextBox Text3
Height = 390
Left = 6600
TabIndex = 12
Text = "10"
Top = 6480
Width = 855
End
Begin VB.TextBox Text2
Height = 375
Left = 4080
TabIndex = 10
Text = "8"
Top = 6480
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 8
Text = "5"
Top = 6480
Width = 735
End
Begin MSFlexGridLib.MSFlexGrid MGrid1
CausesValidation= 0 'False
Height = 1815
Left = 240
TabIndex = 5
Top = 7200
Visible = 0 'False
Width = 6135
_ExtentX = 10821
_ExtentY = 3201
_Version = 393216
Rows = 7
Cols = 12
FixedCols = 2
BackColor = 8454016
BackColorBkg = 8454016
AllowBigSelection= 0 'False
ScrollTrack = -1 'True
AllowUserResizing= 3
End
Begin VB.TextBox Textrec
Height = 375
Left = 3480
TabIndex = 3
Top = 360
Width = 1095
End
Begin MSComDlg.CommonDialog cd
Left = 9480
Top = 1440
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.TextBox TxtEdit
Appearance = 0 'Flat
BackColor = &H00FF0000&
ForeColor = &H00FFFFFF&
Height = 360
Left = 9240
TabIndex = 1
Top = 2400
Visible = 0 'False
Width = 1095
End
Begin MSFlexGridLib.MSFlexGrid GridScheme
Height = 3720
Left = 120
TabIndex = 0
Top = 840
Visible = 0 'False
Width = 6300
_ExtentX = 11113
_ExtentY = 6562
_Version = 393216
Rows = 17
Cols = 42
BackColor = 8454016
ForeColor = 0
BackColorFixed = 12632256
BackColorSel = 8454016
BackColorBkg = 8454016
Redraw = -1 'True
AllowBigSelection= 0 'False
ScrollTrack = -1 'True
Enabled = -1 'True
FillStyle = 1
GridLinesFixed = 1
AllowUserResizing= 3
End
Begin MSCommLib.MSComm MComm1
Left = 9480
Top = 720
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
CommPort = 2
DTREnable = -1 'True
ParitySetting = 2
DataBits = 7
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 4860
Top = 4500
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 9
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1BFC8
Key = "Open"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C0DA
Key = "Save"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C1EC
Key = "Print"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C2FE
Key = "Copy"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C410
Key = "Cut"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C522
Key = "Paste"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C634
Key = "Undo"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C746
Key = "Redo"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "FrmMain.frx":1C858
Key = "Back"
EndProperty
EndProperty
End
Begin VB.Label Labhol
BackStyle = 0 'Transparent
Caption = "假日时段数:"
Height = 375
Left = 5400
TabIndex = 11
Top = 6600
Width = 1215
End
Begin VB.Label LabelSAT
BackStyle = 0 'Transparent
Caption = "周六时段数:"
Height = 375
Left = 2880
TabIndex = 9
Top = 6600
Width = 1215
End
Begin VB.Label LabOD
BackStyle = 0 'Transparent
Caption = "平日时段数:"
ForeColor = &H00000000&
Height = 375
Left = 360
TabIndex = 7
Top = 6600
Width = 1095
End
Begin VB.Label LabMt
BackStyle = 0 'Transparent
Caption = "信号机多时段表:"
ForeColor = &H000000FF&
Height = 255
Left = 0
TabIndex = 6
Top = 6240
Visible = 0 'False
Width = 1455
End
Begin VB.Label Labrec
BackStyle = 0 'Transparent
Caption = "接收区:"
ForeColor = &H000000FF&
Height = 255
Left = 2400
TabIndex = 4
Top = 480
Width = 735
End
Begin VB.Label Labsch
BackStyle = 0 'Transparent
Caption = "信号机配时方案表:"
ForeColor = &H000000FF&
Height = 255
Left = 0
TabIndex = 2
Top = 480
Visible = 0 'False
Width = 1815
End
Begin VB.Menu FileMenu
Caption = "文件"
Begin VB.Menu FileNew
Caption = "新建"
Begin VB.Menu SchNew
Caption = "方案表"
End
Begin VB.Menu SchLampNew
Caption = "灯色表"
End
Begin VB.Menu SchMultNew
Caption = "多时段表"
End
End
Begin VB.Menu mm
Caption = "-"
End
Begin VB.Menu FileOpen
Caption = "打开"
Begin VB.Menu SchOpen
Caption = "方案表"
End
Begin VB.Menu SchLampOpen
Caption = "灯色表"
End
Begin VB.Menu SchMultOpen
Caption = "多时段表"
End
End
Begin VB.Menu pp
Caption = "-"
End
Begin VB.Menu FileSave
Caption = "保存"
Begin VB.Menu SchSave
Caption = "方案表"
End
Begin VB.Menu SchLampSave
Caption = "灯色表"
End
Begin VB.Menu SchMultSave
Caption = "多时段表"
End
End
Begin VB.Menu qq
Caption = "-"
End
Begin VB.Menu FileSaveAs
Caption = "另存为"
End
Begin VB.Menu ww
Caption = "-"
End
Begin VB.Menu FilePrint
Caption = "打印"
End
Begin VB.Menu aa
Caption = "-"
End
Begin VB.Menu FileExit
Caption = "退出"
End
End
Begin VB.Menu EditMenu
Caption = "编辑"
Begin VB.Menu DeleteInput
Caption = "撤消键入"
End
Begin VB.Menu ss
Caption = "-"
End
Begin VB.Menu EditCopy
Caption = "复制"
Shortcut = ^C
End
Begin VB.Menu ee
Caption = "-"
End
Begin VB.Menu EditCut
Caption = "剪切"
Shortcut = ^X
End
Begin VB.Menu ff
Caption = "-"
End
Begin VB.Menu EditPaste
Caption = "粘贴"
Shortcut = ^V
End
End
Begin VB.Menu MenuComm
Caption = "通信"
Begin VB.Menu SendState
Caption = "发送状态字"
End
Begin VB.Menu rr
Caption = "-"
End
Begin VB.Menu SendScheme
Caption = "发送方案表"
End
Begin VB.Menu tt
Caption = "-"
End
Begin VB.Menu SendMultime
Caption = "发送多时段表"
End
End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim steps%
Dim stepnum%
Dim commflag As Boolean
Dim firstimer As Boolean
Dim datamatrix(1 To 40, 1 To 40) As Integer
Dim gf%
Dim fcut As Boolean
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComCtlLib.Button)
Dim datamatrix1(1 To 40, 1 To 40) As Integer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -