📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "选项(*重新启动后生效)"
ClientHeight = 3435
ClientLeft = 60
ClientTop = 345
ClientWidth = 5235
LinkTopic = "Form2"
ScaleHeight = 3435
ScaleWidth = 5235
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Appearance = 0 'Flat
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 615
Left = 2160
MultiLine = -1 'True
TabIndex = 16
Text = "Form2.frx":0000
Top = 360
Width = 1935
End
Begin VB.CommandButton cmdCannel
Caption = "取消"
Height = 375
Left = 4080
TabIndex = 14
Top = 3000
Width = 1095
End
Begin VB.CommandButton cmdOk
Caption = "确定"
Height = 375
Left = 4080
TabIndex = 13
Top = 2400
Width = 1095
End
Begin VB.Frame Frame2
Caption = "按键方案"
Height = 1815
Left = 120
TabIndex = 8
Top = 1560
Width = 3855
Begin VB.TextBox Text4
Appearance = 0 'Flat
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 735
Left = 2520
MultiLine = -1 'True
TabIndex = 18
Text = "Form2.frx":001F
Top = 840
Width = 1095
End
Begin VB.TextBox Text3
Appearance = 0 'Flat
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 735
Left = 1320
MultiLine = -1 'True
TabIndex = 17
Text = "Form2.frx":0044
Top = 840
Width = 855
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 855
Left = 120
MultiLine = -1 'True
TabIndex = 15
Text = "Form2.frx":0064
Top = 840
Width = 855
End
Begin VB.OptionButton OptChoice2
Height = 255
Left = 2520
TabIndex = 11
Top = 360
Width = 255
End
Begin VB.OptionButton OptChoice1
Caption = "Option3"
Height = 255
Left = 1320
TabIndex = 9
Top = 360
Value = -1 'True
Width = 255
End
Begin VB.Line Line2
X1 = 1080
X2 = 1080
Y1 = 240
Y2 = 1680
End
Begin VB.Label Label5
Caption = "方案2"
Height = 255
Left = 2880
TabIndex = 12
Top = 360
Width = 495
End
Begin VB.Label Label4
Caption = "方案1"
Height = 255
Left = 1680
TabIndex = 10
Top = 360
Width = 495
End
Begin VB.Line Line3
X1 = 2400
X2 = 2400
Y1 = 240
Y2 = 1680
End
Begin VB.Line Line1
X1 = 120
X2 = 3600
Y1 = 720
Y2 = 720
End
End
Begin VB.CheckBox showNextChk
Height = 255
Left = 2400
TabIndex = 6
Top = 1080
Value = 1 'Checked
Width = 255
End
Begin VB.TextBox txtFallGrid
Height = 375
Left = 4200
MaxLength = 5
TabIndex = 5
Text = "1"
Top = 360
Width = 855
End
Begin VB.Frame Frame1
Caption = "旋转方向"
Height = 1095
Left = 120
TabIndex = 0
Top = 240
Width = 1935
Begin VB.OptionButton OptUnClock
Height = 375
Left = 240
TabIndex = 2
Top = 600
Width = 255
End
Begin VB.OptionButton OptClock
Height = 495
Left = 240
TabIndex = 1
Top = 240
Value = -1 'True
Width = 255
End
Begin VB.Label Label2
Caption = "逆时针"
Height = 255
Left = 720
TabIndex = 4
Top = 720
Width = 615
End
Begin VB.Label Label1
Caption = "顺时针"
Height = 255
Left = 720
TabIndex = 3
Top = 360
Width = 615
End
End
Begin VB.Label Label3
Caption = "显示下一个方块类型"
Height = 255
Left = 2760
TabIndex = 7
Top = 1080
Width = 1695
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOk_Click()
If OptClock.Value = True Then rotateOption = True '选择顺时针旋转方案
If OptClock.Value = False Then rotateOption = False
If showNextChk.Value = True Then showNextBlock = True '显示下一个方块
If showNextChk.Value = False Then showNextBlock = False
If OptChoice1.Value = True Then pressOption = True '选择第一套按键方案
If OptChoice2.Value = True Then pressOption = False
fallGrid = CInt(txtFallGrid.Text) '修改下落格数
Unload Form2
End Sub
Private Sub cmdCannel_Click()
Unload Form2
End Sub
Private Sub Form_Load()
'选择默认方案
rotateOption = True
showNextBlock = True
pressOption = True
fallGrid = 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -