VERSION 5.00
Begin VB.Form FrmTextEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "百变文字"
   ClientHeight    =   4410
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4125
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4410
   ScaleWidth      =   4125
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton CmdExit 
      Caption         =   "退出"
      Height          =   375
      Left            =   2880
      TabIndex        =   19
      Top             =   3720
      Width           =   1095
   End
   Begin VB.Frame FraZixing 
      Caption         =   "字形"
      Height          =   1095
      Left            =   1440
      TabIndex        =   6
      Top             =   3240
      Width           =   1215
      Begin VB.CheckBox ChkItalic 
         Caption         =   "斜体"
         Height          =   255
         Left            =   240
         TabIndex        =   18
         Top             =   720
         Width           =   735
      End
      Begin VB.CheckBox ChkBold 
         Caption         =   "粗体"
         Height          =   255
         Left            =   240
         TabIndex        =   17
         Top             =   360
         Width           =   735
      End
   End
   Begin VB.Frame FraZiti 
      Caption         =   "字体"
      Height          =   1695
      Left            =   120
      TabIndex        =   5
      Top             =   1440
      Width           =   1215
      Begin VB.OptionButton OptLishu 
         Caption         =   "隶书"
         Height          =   375
         Left            =   240
         TabIndex        =   9
         Top             =   1200
         Width           =   855
      End
      Begin VB.OptionButton OptHeiti 
         Caption         =   "黑体"
         Height          =   375
         Left            =   240
         TabIndex        =   8
         Top             =   780
         Width           =   855
      End
      Begin VB.OptionButton OptSongti 
         Caption         =   "宋体"
         Height          =   375
         Left            =   240
         TabIndex        =   7
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.Frame FraYanse 
      Caption         =   "颜色"
      Height          =   1695
      Left            =   2760
      TabIndex        =   3
      Top             =   1440
      Width           =   1215
      Begin VB.OptionButton OptBlue 
         Caption         =   "蓝色"
         Height          =   375
         Left            =   240
         TabIndex        =   14
         Top             =   1200
         Width           =   735
      End
      Begin VB.OptionButton OptRed 
         Caption         =   "红色"
         Height          =   375
         Left            =   240
         TabIndex        =   13
         Top             =   780
         Width           =   735
      End
      Begin VB.OptionButton OptBlack 
         Caption         =   "黑色"
         Height          =   375
         Left            =   240
         TabIndex        =   12
         Top             =   360
         Width           =   735
      End
   End
   Begin VB.Frame FraXiaoguo 
      Caption         =   "效果"
      Height          =   1095
      Left            =   120
      TabIndex        =   2
      Top             =   3240
      Width           =   1215
      Begin VB.CheckBox ChkStrikethru 
         Caption         =   "删除线"
         Height          =   255
         Left            =   120
         TabIndex        =   16
         Top             =   720
         Width           =   855
      End
      Begin VB.CheckBox ChkUnderLine 
         Caption         =   "下划线"
         Height          =   180
         Left            =   120
         TabIndex        =   15
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.Frame FraZihao 
      Caption         =   "字号"
      Height          =   1695
      Left            =   1440
      TabIndex        =   1
      Top             =   1440
      Width           =   1215
      Begin VB.OptionButton OptSize24 
         Caption         =   "24"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   1200
         Width           =   495
      End
      Begin VB.OptionButton OptSize12 
         Caption         =   "12"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   780
         Width           =   495
      End
      Begin VB.OptionButton OptSize9 
         Caption         =   "9"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   4
         Top             =   360
         Width           =   495
      End
   End
   Begin VB.TextBox TxtInput 
      Height          =   1215
      Left            =   120
      TabIndex        =   0
      Text            =   "我为奥运作贡献"
      Top             =   120
      Width           =   3855
   End
End
Attribute VB_Name = "FrmTextEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub ChkBold_Click()
  TxtInput.FontBold = ChkBold.Value
End Sub

Private Sub ChkItalic_Click()
  TxtInput.FontItalic = ChkItalic.Value
End Sub

Private Sub ChkStrikethru_Click()
  TxtInput.FontStrikethru = ChkStrikethru.Value    '删除线
End Sub

Private Sub ChkUnderLine_Click()
  TxtInput.FontUnderline = ChkUnderLine.Value      '下划线
End Sub

Private Sub CmdExit_Click()
 End
End Sub

Private Sub OptSize9_Click(Index As Integer)
  TxtInput.FontSize = 9
End Sub

Private Sub OptSongti_Click()
  TxtInput.FontName = "宋体"
End Sub

Private Sub OptHeiti_Click()
  TxtInput.FontName = "黑体"
End Sub

Private Sub OptLishu_Click()
   TxtInput.FontName = "隶书"
End Sub

Private Sub OptSize12_Click()
  TxtInput.FontSize = 12
End Sub

Private Sub OptSize24_Click()
  TxtInput.FontSize = 24
End Sub

Private Sub OptBlack_Click()
  TxtInput.ForeColor = RGB(0, 0, 0)      '设置文字颜色为黑色
End Sub

Private Sub OptRed_Click()
  TxtInput.ForeColor = RGB(255, 0, 0)    '设置文字颜色为红色
End Sub

Private Sub OptBlue_Click()
  TxtInput.ForeColor = RGB(0, 0, 255)    '设置文字颜色为蓝色
End Sub

