📄 window.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5010
ClientLeft = 60
ClientTop = 450
ClientWidth = 8055
LinkTopic = "Form1"
ScaleHeight = 5010
ScaleWidth = 8055
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 1000
Left = 600
Top = 1200
End
Begin VB.Frame Frame1
Caption = "系统时间"
Height = 2295
Left = 2040
TabIndex = 7
Top = 1320
Visible = 0 'False
Width = 2655
Begin VB.Label Label1
Caption = "现在时间"
Height = 735
Left = 360
TabIndex = 8
Top = 600
Width = 1575
End
End
Begin VB.ListBox List1
Height = 420
ItemData = "window.frx":0000
Left = 360
List = "window.frx":000A
TabIndex = 6
Top = 3480
Visible = 0 'False
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "开始"
Height = 495
Left = 360
TabIndex = 5
Top = 3840
Width = 1215
End
Begin VB.TextBox Text1
Height = 3375
Left = 5760
MultiLine = -1 'True
TabIndex = 4
Text = "window.frx":001E
Top = 960
Visible = 0 'False
Width = 1815
End
Begin VB.CheckBox Check2
Caption = "斜体"
Height = 255
Left = 4560
TabIndex = 3
Top = 360
Width = 975
End
Begin VB.CheckBox Check1
Caption = "粗体"
Height = 255
Left = 3120
TabIndex = 2
Top = 360
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "隐藏"
Height = 255
Index = 1
Left = 1680
TabIndex = 1
Top = 360
Width = 1095
End
Begin VB.OptionButton Option1
Caption = "显示"
Height = 255
Index = 0
Left = 240
TabIndex = 0
Top = 360
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text1.FontBold = True
Else
Text1.FontBold = False
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Text1.FontItalic = True
Else
Text1.FontItalic = False
End If
End Sub
Private Sub Command1_Click()
List1.Visible = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
List1.Visible = False
Frame1.Visible = False
End Sub
Private Sub List1_Click()
If List1.Selected(0) = True Then
Frame1.Visible = True
Label1.Caption = Time
Else
Frame1.Visible = False
End If
End Sub
Private Sub List1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
List1.Visible = True
End Sub
Private Sub Option1_Click(Index As Integer)
If Option1(0).Value = True Then
Text1.Visible = True
Else
Text1.Visible = False
End If
End Sub
Private Sub Timer1_Timer()
Timer1.Interval = 1000
Label1.Caption = Time
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -