📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Form1"
ClientHeight = 5730
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 5730
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame5
Caption = "文字颜色"
Height = 615
Left = 480
TabIndex = 13
Top = 5040
Width = 3855
Begin VB.OptionButton Option6
Caption = "绿"
Height = 180
Index = 2
Left = 2520
TabIndex = 16
Top = 240
Width = 495
End
Begin VB.OptionButton Option6
Caption = "黄"
Height = 180
Index = 1
Left = 1440
TabIndex = 15
Top = 240
Width = 495
End
Begin VB.OptionButton Option6
Caption = "红"
Height = 180
Index = 0
Left = 240
TabIndex = 14
Top = 240
Width = 495
End
End
Begin VB.Frame Frame3
Caption = "对齐方式"
Height = 615
Left = 480
TabIndex = 3
Top = 4080
Width = 3855
Begin VB.OptionButton Option5
Caption = "居中"
Height = 255
Index = 2
Left = 2520
TabIndex = 12
Top = 240
Width = 735
End
Begin VB.OptionButton Option5
Caption = "居右"
Height = 255
Index = 1
Left = 1440
TabIndex = 11
Top = 240
Width = 735
End
Begin VB.OptionButton Option5
Caption = "居左"
Height = 255
Index = 0
Left = 240
TabIndex = 10
Top = 240
Width = 735
End
End
Begin VB.Frame Frame2
Caption = "字体"
Height = 615
Index = 0
Left = 480
TabIndex = 2
Top = 3120
Width = 3855
Begin VB.CheckBox Check2
Caption = "斜体"
Height = 300
Left = 2040
TabIndex = 17
Top = 240
Width = 855
End
Begin VB.CheckBox Check1
Caption = "粗体"
Height = 300
Left = 240
TabIndex = 9
Top = 240
Width = 855
End
End
Begin VB.Frame Frame1
Caption = "字号"
Height = 615
Left = 480
TabIndex = 1
Top = 2160
Width = 3855
Begin VB.Frame Frame4
Caption = "字号"
Height = 615
Left = 0
TabIndex = 5
Top = 0
Width = 3855
Begin VB.OptionButton Option4
Caption = "24"
Height = 255
Left = 2640
TabIndex = 8
Top = 240
Width = 615
End
Begin VB.OptionButton Option3
Caption = "18"
Height = 255
Left = 1440
TabIndex = 7
Top = 240
Width = 615
End
Begin VB.OptionButton Option2
Caption = "12"
Height = 255
Left = 360
TabIndex = 6
Top = 240
Width = 615
End
End
Begin VB.OptionButton Option1
Caption = "12"
Height = 255
Left = 360
TabIndex = 4
Top = 240
Width = 615
End
End
Begin VB.TextBox Text1
Height = 1815
Left = 480
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Text = "Form1.frx":0000
Top = 120
Width = 3855
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 Option2_Click()
Text1.FontSize = Option2.Caption
End Sub
Private Sub Option3_Click()
Text1.FontSize = Option3.Caption
End Sub
Private Sub Option4_Click()
Text1.FontSize = Option4.Caption
End Sub
Private Sub Option5_Click(Index As Integer)
Select Case Index
Case 0
Text1.Alignment = 0
Case 1
Text1.Alignment = 1
Case 2
Text1.Alignment = 2
End Select
End Sub
Private Sub Option6_Click(Index As Integer)
Select Case Index
Case 0
Text1.ForeColor = QBColor(12)
Case 1
Text1.ForeColor = QBColor(14)
Case 2
Text1.ForeColor = QBColor(10)
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -