📄 nihongdeng3.frm
字号:
VERSION 5.00
Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.1#0"; "COMCT232.OCX"
Begin VB.Form Form3
BorderStyle = 1 'Fixed Single
Caption = "路数"
ClientHeight = 3090
ClientLeft = 4545
ClientTop = 840
ClientWidth = 2250
ControlBox = 0 'False
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 3090
ScaleWidth = 2250
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 720
TabIndex = 12
Top = 2640
Width = 855
End
Begin ComCtl2.UpDown UpDown4
Height = 270
Left = 1440
TabIndex = 11
Top = 2160
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 327681
Value = 15
BuddyControl = "Text4"
BuddyDispid = 196611
OrigLeft = 1680
OrigTop = 2040
OrigRight = 1950
OrigBottom = 2295
Max = 11895
Min = 15
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox Text4
Height = 270
Left = 840
TabIndex = 10
Text = "15"
Top = 2160
Width = 585
End
Begin ComCtl2.UpDown UpDown3
Height = 270
Left = 1440
TabIndex = 8
Top = 1560
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 327681
Value = 15
BuddyControl = "Text3"
BuddyDispid = 196613
OrigLeft = 1680
OrigTop = 1560
OrigRight = 1950
OrigBottom = 1815
Increment = 15
Max = 11895
Min = 15
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox Text3
Height = 270
Left = 840
TabIndex = 7
Text = "15"
Top = 1560
Width = 585
End
Begin ComCtl2.UpDown UpDown2
Height = 270
Left = 1440
TabIndex = 5
Top = 960
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 327681
BuddyControl = "Text2"
BuddyDispid = 196615
OrigLeft = 1680
OrigTop = 1080
OrigRight = 1950
OrigBottom = 1335
Increment = 15
Max = 11895
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox Text2
Height = 270
Left = 840
TabIndex = 4
Text = "0"
Top = 960
Width = 585
End
Begin ComCtl2.UpDown UpDown1
Height = 270
Left = 1440
TabIndex = 2
Top = 240
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 327681
BuddyControl = "Text1"
BuddyDispid = 196617
OrigLeft = 1680
OrigTop = 480
OrigRight = 1950
OrigBottom = 735
Max = 397
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.TextBox Text1
Height = 270
Left = 840
TabIndex = 0
Text = "0"
Top = 240
Width = 585
End
Begin ComCtl2.UpDown UpDown5
Height = 270
Left = 1800
TabIndex = 13
Top = 960
Width = 270
_ExtentX = 476
_ExtentY = 476
_Version = 327681
BuddyControl = "Text2"
BuddyDispid = 196615
OrigLeft = 1680
OrigTop = 1080
OrigRight = 1950
OrigBottom = 1335
Increment = 150
Max = 11895
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "微调"
ForeColor = &H000000C0&
Height = 180
Index = 5
Left = 1320
TabIndex = 15
Top = 720
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "快速"
ForeColor = &H000000C0&
Height = 180
Index = 4
Left = 1800
TabIndex = 14
Top = 720
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "间隔:"
Height = 180
Index = 3
Left = 240
TabIndex = 9
Top = 2205
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "宽度:"
Height = 180
Index = 2
Left = 240
TabIndex = 6
Top = 1605
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "起点:"
Height = 180
Index = 1
Left = 240
TabIndex = 3
Top = 1005
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "路数:"
Height = 180
Index = 0
Left = 240
TabIndex = 1
Top = 285
Width = 540
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
NowLs = Val(Text1.Text)
NowQd = Val(Text2.Text)
NowKd = Val(Text3.Text)
NowJg = Val(Text4.Text)
Unload Form3
Form1.Enabled = True
Form1.SetFocus
End Sub
Private Sub Text1_Change()
On Error Resume Next
If ChangeMe = True Then
If Val(Text1.Text) > TotalLs Then
Text1.Text = TotalLs
End If
For i = 0 To TotalLs - 1
Form1.Shape1(i).Visible = False
Next i
For i = 0 To Val(Text1.Text) - 1
Form1.Shape1(i).Width = Val(Text3.Text)
Form1.Shape1(i).Left = Val(Text2.Text) + i * (Val(Text3.Text) + Val(Text4.Text))
Form1.Shape1(i).Visible = True
Next i
Form1.Shape2.Left = Form1.Shape1(0).Left
Form1.Shape2.Width = (Val(Text3.Text) + Val(Text4.Text)) * (Val(Text1.Text) - 1) + Val(Text3.Text)
If NowColor = 0 Then
For i = 0 To Val(Text1.Text) - 1
Form1.Shape1(i).BackColor = DengGuanColor1
Form1.Shape1(i).BorderColor = DengGuanColor1
Next i
ElseIf NowColor = 1 Then
For i = 0 To Val(Text1.Text) - 1 Step 2
Form1.Shape1(i).BackColor = DengGuanColor1
Form1.Shape1(i).BorderColor = DengGuanColor1
Next i
For i = 1 To Val(Text1.Text) - 1 Step 2
Form1.Shape1(i).BackColor = DengGuanColor2
Form1.Shape1(i).BorderColor = DengGuanColor2
Next i
ElseIf NowColor = 2 Then
For i = 0 To Val(Text1.Text) - 1 Step 3
Form1.Shape1(i).BackColor = DengGuanColor1
Form1.Shape1(i).BorderColor = DengGuanColor1
Next i
For i = 1 To Val(Text1.Text) - 1 Step 3
Form1.Shape1(i).BackColor = DengGuanColor2
Form1.Shape1(i).BorderColor = DengGuanColor2
Next i
For i = 2 To Val(Text1.Text) - 1 Step 3
Form1.Shape1(i).BackColor = DengGuanColor3
Form1.Shape1(i).BorderColor = DengGuanColor3
Next i
End If
If (Form1.Shape2.Left + Form1.Shape2.Width) > Form1.Width Then
Form1.HScroll1.Max = Val(Text1.Text)
NowX = Form1.Shape1(0).Left
Form1.HScroll1.Visible = True
Else
Form1.HScroll1.Visible = False
End If
End If
End Sub
Private Sub Text2_Change()
On Error Resume Next
If ChangeMe = True Then
For i = 0 To Val(Text1.Text) - 1
Form1.Shape1(i).Width = Val(Text3.Text)
Form1.Shape1(i).Left = Val(Text2.Text) + i * (Val(Text3.Text) + Val(Text4.Text))
Next i
Form1.Shape2.Left = Form1.Shape1(0).Left
Form1.Shape2.Width = (Val(Text3.Text) + Val(Text4.Text)) * (Val(Text1.Text) - 1) + Val(Text3.Text)
If (Form1.Shape2.Left + Form1.Shape2.Width) > Form1.Width Then
Form1.HScroll1.Max = Val(Text1.Text)
NowX = Form1.Shape1(0).Left
Form1.HScroll1.Visible = True
Else
Form1.HScroll1.Visible = False
End If
End If
End Sub
Private Sub Text3_Change()
On Error Resume Next
If ChangeMe = True Then
For i = 0 To Val(Text1.Text) - 1
Form1.Shape1(i).Width = Val(Text3.Text)
Form1.Shape1(i).Left = Val(Text2.Text) + i * (Val(Text3.Text) + Val(Text4.Text))
Next i
Form1.Shape2.Left = Form1.Shape1(0).Left
Form1.Shape2.Width = (Val(Text3.Text) + Val(Text4.Text)) * (Val(Text1.Text) - 1) + Val(Text3.Text)
If (Form1.Shape2.Left + Form1.Shape2.Width) > Form1.Width Then
Form1.HScroll1.Max = Val(Text1.Text)
NowX = Form1.Shape1(0).Left
Form1.HScroll1.Visible = True
Else
Form1.HScroll1.Visible = False
End If
End If
End Sub
Private Sub Text4_Change()
On Error Resume Next
If ChangeMe = True Then
For i = 0 To Val(Text1.Text) - 1
Form1.Shape1(i).Width = Val(Text3.Text)
Form1.Shape1(i).Left = Val(Text2.Text) + i * (Val(Text3.Text) + Val(Text4.Text))
Next i
Form1.Shape2.Left = Form1.Shape1(0).Left
Form1.Shape2.Width = (Val(Text3.Text) + Val(Text4.Text)) * (Val(Text1.Text) - 1) + Val(Text3.Text)
If (Form1.Shape2.Left + Form1.Shape2.Width) > Form1.Width Then
Form1.HScroll1.Max = Val(Text1.Text)
NowX = Form1.Shape1(0).Left
Form1.HScroll1.Visible = True
Else
Form1.HScroll1.Visible = False
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -