📄 frmtree.frm
字号:
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 12
Left = 4440
TabIndex = 17
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 11
Left = 4080
TabIndex = 16
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 10
Left = 3720
TabIndex = 15
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 9
Left = 3360
TabIndex = 14
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 8
Left = 3000
TabIndex = 13
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 7
Left = 2640
TabIndex = 12
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 6
Left = 2280
TabIndex = 11
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 5
Left = 1920
TabIndex = 10
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 4
Left = 1560
TabIndex = 9
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 3
Left = 1200
TabIndex = 8
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 2
Left = 840
TabIndex = 7
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 1
Left = 480
TabIndex = 6
Top = 50
Width = 255
End
Begin VB.Label lbltree
AutoSize = -1 'True
Caption = "熊"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Index = 0
Left = 120
TabIndex = 4
Top = 50
Width = 255
End
End
Begin VB.CommandButton CmdCER
Caption = "结束练习"
Height = 375
Left = 8040
TabIndex = 2
Top = 3960
Width = 975
End
Begin VB.Image Image1
Height = 2940
Left = -200
Picture = "FrmTree.frx":0000
Top = 960
Width = 9600
End
End
End
Attribute VB_Name = "FrmTree"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Head() As String
Dim StrHead As String
Dim CountT As Integer
Dim OStr As String
Dim TStr As String
Private Sub CmdCER_Click()
ReDim Head(0) As String
Unload Me
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode >= 65 And KeyCode <= 90 Then
Select Case KeyCode
Case vbKeyA
StrHead = "A"
Case vbKeyB
StrHead = "B"
Case vbKeyC
StrHead = "C"
Case vbKeyD
StrHead = "D"
Case vbKeyE
StrHead = "E"
Case vbKeyF
StrHead = "F"
Case vbKeyG
StrHead = "G"
Case vbKeyH
StrHead = "H"
Case vbKeyI
StrHead = "I"
Case vbKeyJ
StrHead = "J"
Case vbKeyK
StrHead = "K"
Case vbKeyL
StrHead = "L"
Case vbKeyM
StrHead = "M"
Case vbKeyN
StrHead = "N"
Case vbKeyO
StrHead = "O"
Case vbKeyP
StrHead = "P"
Case vbKeyQ
StrHead = "Q"
Case vbKeyR
StrHead = "R"
Case vbKeyS
StrHead = "S"
Case vbKeyT
StrHead = "T"
Case vbKeyU
StrHead = "U"
Case vbKeyV
StrHead = "V"
Case vbKeyW
StrHead = "W"
Case vbKeyX
StrHead = "X"
Case vbKeyY
StrHead = "Y"
Case vbKeyZ
StrHead = "Z"
End Select
For I = 0 To 176
OStr = Mid(Head(I), 2, 1)
TStr = Mid(Head(I), 1, 1)
If (StrHead = OStr) And (TStr = lbltree(CountT).Caption) Then
lblInput(CountT).Caption = "√"
Exit For
Else
lblInput(CountT).Caption = "×"
End If
Next I
If CountT < 24 Then
lblInput(CountT + 1).Caption = "↑"
End If
CountT = CountT + 1
If CountT > 24 Then
Form_Load
End If
End If
End Sub
Private Sub Form_Load()
Heads
CountT = 0
For I = 0 To 24
lbltree(I).Caption = Mid(Head(Int(Rnd * 177)), 1, 1)
lblInput(I).Caption = ""
Next
lblInput(0).Caption = "↑"
End Sub
Public Sub Heads() '初使化字根
ReDim Head(177) As String
Head(0) = "王G"
Head(1) = "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -