📄 情书生成器2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 1 'Fixed Single
Caption = "情书生成器"
ClientHeight = 1725
ClientLeft = 4575
ClientTop = 2940
ClientWidth = 2565
Icon = "情书生成器2.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "情书生成器2.frx":030A
ScaleHeight = 1725
ScaleWidth = 2565
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Caption = "下一步"
BeginProperty Font
Name = "黑体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 1
Left = 1530
TabIndex = 1
Top = 1260
Width = 840
End
Begin VB.Timer Timer1
Interval = 100
Left = 990
Top = 900
End
Begin VB.TextBox Text1
Alignment = 2 'Center
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 180
TabIndex = 0
Text = "乌黑的长发"
Top = 360
Width = 2190
End
Begin VB.CommandButton Command1
Caption = "上一步"
BeginProperty Font
Name = "黑体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 0
Left = 225
TabIndex = 3
Top = 1260
Width = 840
End
Begin VB.Line Line1
BorderColor = &H00808080&
BorderStyle = 6 'Inside Solid
Index = 0
X1 = 135
X2 = 2385
Y1 = 1125
Y2 = 1125
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "形容一下她的头发:"
BeginProperty Font
Name = "黑体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 180
TabIndex = 2
Top = 45
Width = 1785
End
Begin VB.Line Line1
BorderColor = &H00FFFFFF&
BorderWidth = 2
Index = 2
X1 = 180
X2 = 2340
Y1 = 1125
Y2 = 1125
End
Begin VB.Menu mnuAbout
Caption = "a"
Visible = 0 'False
Begin VB.Menu mnuAbout1
Caption = "关于(&A)..."
End
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim exitnext As Boolean
Option Explicit
Private Sub Command1_Click(Index As Integer)
textB = Text1.Text
commandB = True
exitnext = False
Unload Me
If Index = 1 Then
Form3.Show
Else
Form1.Show
End If
End Sub
Private Sub Command1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index = 0 Then
Command1(0).FontBold = True
Else
Command1(1).FontBold = True
End If
End Sub
Private Sub Form_Load()
exitnext = True
If commandB = True Then Text1.Text = textB
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu mnuAbout, vbPopupMenuRightButton
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form2.Show
Label1.FontBold = False
Text1.FontBold = False
Command1(1).FontBold = False
Command1(0).FontBold = False
End Sub
Private Sub Form_Unload(Cancel As Integer)
If exitnext = True Then
Dim msg As Integer
msg = MsgBox("您确定要退出本程序吗?", 1 + 32, "确认")
If msg = 1 Then
Cancel = 0
Else
Cancel = 1
End If
Else
End If
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.FontBold = True
End Sub
Private Sub mnuAbout1_Click()
frmAbout.Show
End Sub
Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.FontBold = True
End Sub
Private Sub Timer1_Timer()
If Text1.Text = "" Then
Command1(1).Enabled = False
Else
Command1(1).Enabled = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -