📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00C0C0C0&
Caption = "滚动字幕"
ClientHeight = 3495
ClientLeft = 60
ClientTop = 345
ClientWidth = 6540
LinkTopic = "Form1"
ScaleHeight = 3495
ScaleWidth = 6540
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command3
BackColor = &H00FFC0C0&
Caption = "退出 &E"
Height = 360
Left = 4350
Style = 1 'Graphical
TabIndex = 3
Top = 3135
Width = 2190
End
Begin VB.CommandButton Command2
BackColor = &H00FFC0C0&
Caption = "暂停 &S"
Height = 360
Left = 2175
Style = 1 'Graphical
TabIndex = 2
Top = 3135
Width = 2190
End
Begin VB.CommandButton Command1
BackColor = &H00FFC0C0&
Caption = "演示 &P"
Height = 360
Left = 0
Style = 1 'Graphical
TabIndex = 1
Top = 3135
Width = 2190
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 200
Left = 135
Top = 1860
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "→滚动字幕"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFF80&
Height = 450
Left = 150
TabIndex = 0
Top = 1530
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Timer1_Timer()
If Label1.Left < 4700 Then
Label1.Left = Label1.Left + 100
Else
Label1.Left = 4700
End If
If Label1.ForeColor = &HFF0000 Then
Label1.ForeColor = &HFF&
Else
Label1.ForeColor = &HFF0000
End If
End Sub
Private Sub Command1_Click()
Timer1.Enabled = True
Label1.Left = 150
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -