practice9_2.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 151 行

FRM
151
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "设置文字的字体、样式和效果"
   ClientHeight    =   2520
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4845
   LinkTopic       =   "Form1"
   ScaleHeight     =   2520
   ScaleWidth      =   4845
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   1455
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   10
      Text            =   "practice9_2.frx":0000
      Top             =   840
      Width           =   4575
   End
   Begin VB.PictureBox Picture2 
      Height          =   495
      Left            =   2160
      ScaleHeight     =   435
      ScaleWidth      =   2475
      TabIndex        =   1
      Top             =   240
      Width           =   2535
      Begin VB.CheckBox Check1 
         Caption         =   "下划线"
         Height          =   450
         Index           =   3
         Left            =   1680
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   0
         Width           =   795
      End
      Begin VB.CheckBox Check1 
         Caption         =   "删除线"
         Height          =   450
         Index           =   2
         Left            =   960
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   0
         Width           =   735
      End
      Begin VB.CheckBox Check1 
         Caption         =   "斜体"
         Height          =   450
         Index           =   1
         Left            =   480
         Style           =   1  'Graphical
         TabIndex        =   7
         Top             =   0
         Width           =   495
      End
      Begin VB.CheckBox Check1 
         Caption         =   "粗体"
         Height          =   450
         Index           =   0
         Left            =   0
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   0
         Width           =   495
      End
   End
   Begin VB.PictureBox Picture1 
      Height          =   495
      Left            =   120
      ScaleHeight     =   435
      ScaleWidth      =   1935
      TabIndex        =   0
      Top             =   240
      Width           =   2000
      Begin VB.OptionButton Option1 
         Caption         =   "隶书"
         Height          =   450
         Index           =   3
         Left            =   1440
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   0
         Width           =   495
      End
      Begin VB.OptionButton Option1 
         Caption         =   "黑体"
         Height          =   450
         Index           =   2
         Left            =   960
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   0
         Width           =   495
      End
      Begin VB.OptionButton Option1 
         Caption         =   "楷体"
         Height          =   450
         Index           =   1
         Left            =   480
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   0
         Width           =   495
      End
      Begin VB.OptionButton Option1 
         Caption         =   "宋体"
         Height          =   450
         Index           =   0
         Left            =   0
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   0
         Width           =   495
      End
   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(Index As Integer)
Select Case Index
Case 0
Text1.FontBold = Check1(0)
Case 1
Text1.FontItalic = Check1(1)
Case 2
Text1.FontStrikethru = Check1(2)
Case 3
Text1.FontUnderline = Check1(3)
End Select
End Sub

Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
Text1.Font = "宋体"
Case 1
Text1.Font = "楷体_GB2312"
Case 2
Text1.Font = "黑体"
Case 3
Text1.Font = "隶书"
End Select
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?