📄 文字效果.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 165
ClientTop = 735
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Label Label1
Height = 1695
Left = 720
TabIndex = 0
Top = 480
Width = 3375
End
Begin VB.Menu F1
Caption = "字体名称"
Begin VB.Menu F11
Caption = "宋体"
Index = 0
Shortcut = ^S
End
Begin VB.Menu F11
Caption = "楷体"
Index = 1
Shortcut = ^K
End
Begin VB.Menu F11
Caption = "黑体"
Index = 2
Shortcut = ^H
End
Begin VB.Menu F11
Caption = "隶书"
Index = 3
Shortcut = ^L
End
End
Begin VB.Menu S1
Caption = "字号"
Begin VB.Menu S11
Caption = "14"
Index = 0
End
Begin VB.Menu S11
Caption = "16"
Index = 1
End
Begin VB.Menu S11
Caption = "18"
Index = 2
End
Begin VB.Menu S11
Caption = "20"
Index = 3
End
End
Begin VB.Menu A1
Caption = "效果"
Begin VB.Menu A11
Caption = "粗体(&B)"
Index = 0
End
Begin VB.Menu A11
Caption = "斜体(&I)"
Index = 1
End
Begin VB.Menu A11
Caption = "下划线(&U)"
Index = 2
End
End
Begin VB.Menu E1
Caption = "结束"
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Label1.FontSize = 18
Label1.Caption = "下拉式菜单" + Chr(13) + Chr(10) + Space(2)
Label1.Caption = Label1.Caption + "下拉式菜单" + Chr(13) + Chr(10)
Label1.Caption = Label1.Caption + Space(4) + "下拉式菜单"
Label1.Caption = Label1.Caption + Chr(13) + Chr(10)
Label1.Caption = Label1.Caption + Space(6)
Label1.Caption = Label1.Caption + "下拉式菜单" + Chr(13) + Chr(10)
End Sub
Private Sub S11_Click(Index As Integer)
Select Case Index
Case 0
Label1.FontSize = 14
Case 1
Label1.FontSize = 16
Case 2
Label1.FontSize = 18
Case 3
Label1.FontSize = 20
End Select
End Sub
Private Sub F11_Click(Index As Integer)
Select Case Index
Case 0
Label1.FontName = "宋体"
Case 1
Label1.FontName = "楷体_GB2312"
Case 2
Label1.FontName = "黑体"
Case 3
Label1.FontName = "隶书"
End Select
End Sub
Private Sub A11_Click(Index As Integer)
Select Case Index
Case 0
Label1.FontBold = True
Case 1
Label1.FontItalic = True
Case 2
Label1.FontUnderline = True
End Select
End Sub
Private Sub E1_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -