frmtestheadvis.frm
来自「电梯检测系统是对电梯性能进行检测的系统。是一个用来学习的程序。」· FRM 代码 · 共 353 行
FRM
353 行
VERSION 5.00
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form FrmTestHeadVis
BackColor = &H8000000A&
BorderStyle = 3 'Fixed Dialog
Caption = "Function Setup"
ClientHeight = 5595
ClientLeft = 45
ClientTop = 330
ClientWidth = 7395
BeginProperty Font
Name = "Arial"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "FrmTestHeadVis.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5595
ScaleWidth = 7395
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton CmdNo
Caption = "No"
Height = 375
Left = 6000
TabIndex = 2
Top = 120
Width = 1095
End
Begin VB.CommandButton CmdYes
Caption = "Yes"
Height = 375
Left = 4440
TabIndex = 1
Top = 120
Width = 1215
End
Begin TabDlg.SSTab SSTab1
Height = 4695
Left = 120
TabIndex = 3
Top = 840
Width = 7215
_ExtentX = 12726
_ExtentY = 8281
_Version = 393216
Style = 1
Tabs = 1
TabsPerRow = 4
TabHeight = 520
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Arial"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
TabCaption(0) = "Visual Inspection"
TabPicture(0) = "FrmTestHeadVis.frx":030A
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "Label3"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).Control(1)= "Line3"
Tab(0).Control(1).Enabled= 0 'False
Tab(0).Control(2)= "Label9(1)"
Tab(0).Control(2).Enabled= 0 'False
Tab(0).Control(3)= "Label2(7)"
Tab(0).Control(3).Enabled= 0 'False
Tab(0).Control(4)= "Line2"
Tab(0).Control(4).Enabled= 0 'False
Tab(0).Control(5)= "Label9(0)"
Tab(0).Control(5).Enabled= 0 'False
Tab(0).Control(6)= "Label2(8)"
Tab(0).Control(6).Enabled= 0 'False
Tab(0).Control(7)= "Label4"
Tab(0).Control(7).Enabled= 0 'False
Tab(0).Control(8)= "Check4"
Tab(0).Control(8).Enabled= 0 'False
Tab(0).Control(9)= "Check3"
Tab(0).Control(9).Enabled= 0 'False
Tab(0).Control(10)= "Check1"
Tab(0).Control(10).Enabled= 0 'False
Tab(0).Control(11)= "Check2"
Tab(0).Control(11).Enabled= 0 'False
Tab(0).ControlCount= 12
Begin VB.CheckBox Check2
Caption = "Check1"
Height = 255
Left = 6120
TabIndex = 7
Top = 2520
Width = 255
End
Begin VB.CheckBox Check1
Caption = "Check1"
Height = 255
Left = 6120
TabIndex = 6
Top = 1440
Width = 255
End
Begin VB.CheckBox Check3
Caption = "Check1"
Enabled = 0 'False
Height = 255
Left = 360
TabIndex = 5
Top = 3720
Value = 1 'Checked
Width = 255
End
Begin VB.CheckBox Check4
Caption = "Check1"
Enabled = 0 'False
Height = 255
Left = 1680
TabIndex = 4
Top = 3720
Width = 255
End
Begin VB.Label Label4
Caption = "No"
Height = 255
Left = 2160
TabIndex = 13
Top = 3720
Width = 615
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Control Panel Door,Interphone Door Can be smoothly opened and shut. Moreover,make sure the door is lockable when it is closed."
ForeColor = &H8000000D&
Height = 840
Index = 8
Left = 360
TabIndex = 12
Top = 2520
Width = 5115
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "Item"
Height = 240
Index = 0
Left = 1680
TabIndex = 11
Top = 840
Width = 390
End
Begin VB.Line Line2
BorderColor = &H8000000C&
X1 = 6840
X2 = 360
Y1 = 1200
Y2 = 1200
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "There must not be transformation,irregular design or scratches on the surface"
ForeColor = &H8000000D&
Height = 600
Index = 7
Left = 360
TabIndex = 10
Top = 1440
Width = 5115
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "Yes or No"
Height = 240
Index = 1
Left = 5760
TabIndex = 9
Top = 840
Width = 930
End
Begin VB.Line Line3
BorderColor = &H8000000C&
X1 = 6720
X2 = 240
Y1 = 3480
Y2 = 3480
End
Begin VB.Label Label3
Caption = "Yes"
Height = 255
Left = 840
TabIndex = 8
Top = 3720
Width = 615
End
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Function Test Info"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 120
TabIndex = 0
Top = 120
Width = 2130
End
Begin VB.Line Line1
BorderColor = &H8000000C&
BorderWidth = 2
X1 = 120
X2 = 7200
Y1 = 600
Y2 = 600
End
End
Attribute VB_Name = "FrmTestHeadVis"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
End Sub
Private Sub CmdNo_Click()
Unload Me
DefMsgBox.Text1 = "You can't be test!"
DefMsgBox.Show 1
FillComp = True
End Sub
Private Sub CmdYes_Click()
On Error GoTo ClickErr
Dim i As Integer
VisPass = True
'====开始保存文件
Open App.Path & "\ResultFiles\" & TempFileName & "func.txt" For Append As #1
Print #1, "------------------------------------------------------------"
Print #1, "Visual Inspection"
If Check1.value = 1 Then
Print #1, "There must not be transformation,irregular design or scratches on the surface: YES"
Else
VisPass = False
Print #1, "There must not be transformation,irregular design or scratches on the surface: NO"
End If
If Check2.value = 1 Then
Print #1, "Control Panel Door,Interphone Door Can be smoothly opened and shut. Moreover,make sure the door is lockable when it is closed.: YES"
Else
VisPass = False
Print #1, "Control Panel Door,Interphone Door Can be smoothly opened and shut. Moreover,make sure the door is lockable when it is closed.: NO"
End If
Close #1
FillComp = True
FillSucc = True
Unload Me
Exit Sub
ClickErr:
Unload Me
DefMsgBox.Text1 = Error$
DefMsgBox.Show 1
Resume
On Error Resume Next
Close #1
End Sub
Private Sub Form_Load()
On Error GoTo LoadErr
TextDate = Format$(Now, "MM-DD-YYYY HH:MM")
TextVersion = "V1.0"
TextDate = TextDate
FillComp = False
FillSucc = False
Exit Sub
LoadErr:
SetWindowPos DefMsgBox.hwnd, HWND_TOPMOST, 200, 100, 400, 185, SWP_SHOWWINDOW
DefMsgBox.Text1 = Error$
Do Until DefMsgComp
DoEvents
Loop
End Sub
Private Sub Label7_Click()
End Sub
Private Sub Label15_Click()
End Sub
Private Sub Label11_Click()
End Sub
Private Sub TextAc_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
End If
End Sub
Private Sub TextAcM_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
End If
End Sub
Private Sub TextID_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
End If
End Sub
Private Sub TextWO_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?