📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "游戏设定"
ClientHeight = 3915
ClientLeft = 5310
ClientTop = 4095
ClientWidth = 4830
LinkTopic = "Form2"
ScaleHeight = 3915
ScaleWidth = 4830
Begin VB.CommandButton Command2
Caption = "取消"
Height = 315
Left = 3600
TabIndex = 10
Top = 3300
Width = 915
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 315
Left = 2400
TabIndex = 9
Top = 3300
Width = 915
End
Begin VB.TextBox Text4
Height = 315
Left = 1200
TabIndex = 8
Top = 2700
Width = 615
End
Begin VB.TextBox Text3
Height = 315
Left = 1200
TabIndex = 7
Top = 2100
Width = 615
End
Begin VB.TextBox Text2
Height = 315
Left = 1200
TabIndex = 6
Top = 1500
Width = 615
End
Begin VB.TextBox Text1
Height = 315
Left = 1200
TabIndex = 5
Top = 900
Width = 615
End
Begin VB.Label Label5
Alignment = 2 'Center
Caption = "右"
Height = 315
Left = 300
TabIndex = 4
Top = 2700
Width = 615
End
Begin VB.Label Label4
Alignment = 2 'Center
Caption = "左"
Height = 315
Left = 300
TabIndex = 3
Top = 2100
Width = 615
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "下"
Height = 315
Left = 300
TabIndex = 2
Top = 1500
Width = 615
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "上"
Height = 315
Left = 300
TabIndex = 1
Top = 900
Width = 615
End
Begin VB.Label Label1
Caption = "方向键设定:"
Height = 315
Left = 300
TabIndex = 0
Top = 300
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Fx_up = Text1.Text
Fx_down = Text2.Text
Fx_left = Text3.Text
Fx_right = Text4.Text
Form2.Hide
End Sub
Private Sub Command2_Click()
Form2.Hide
End Sub
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Text1.Text = ""
Text1.Text = KeyCode
End Sub
Private Sub Text2_KeyUp(KeyCode As Integer, Shift As Integer)
Text2.Text = ""
Text2.Text = KeyCode
End Sub
Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
Text3.Text = ""
Text3.Text = KeyCode
End Sub
Private Sub Text4_KeyUp(KeyCode As Integer, Shift As Integer)
Text4.Text = ""
Text4.Text = KeyCode
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -