⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 Visual Basic程序设计基础》-杨小影-源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "一个简单的文本编辑器"
   ClientHeight    =   4305
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   6510
   LinkTopic       =   "Form1"
   ScaleHeight     =   4305
   ScaleWidth      =   6510
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   3255
      Left            =   240
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   0
      Top             =   480
      Width           =   5775
   End
   Begin VB.Menu mnuFile 
      Caption         =   "文件(F)"
   End
   Begin VB.Menu mnuEdit 
      Caption         =   "编辑(E)"
      Begin VB.Menu EditCut 
         Caption         =   "剪切"
      End
      Begin VB.Menu EditCopy 
         Caption         =   "复制"
      End
      Begin VB.Menu EditPaste 
         Caption         =   "粘贴"
      End
   End
   Begin VB.Menu mnuSet 
      Caption         =   "设置(S)"
      Begin VB.Menu setFont 
         Caption         =   "设置字体"
      End
      Begin VB.Menu setColor 
         Caption         =   "设置颜色"
         Begin VB.Menu setColor_Color 
            Caption         =   "红色"
            Index           =   1
         End
         Begin VB.Menu setColor_Color 
            Caption         =   "绿色"
            Index           =   2
         End
         Begin VB.Menu setColor_Color 
            Caption         =   "蓝色"
            Index           =   3
         End
      End
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "帮助(H)"
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub EditCopy_Click()
Clipboard.SetText Text1.SelText
EditPaste.Enabled = True
End Sub

Private Sub editCut_Click()
Clipboard.SetText Text1.SelText
Text1.SelText = ""
EditPaste.Enabled = True
End Sub

Private Sub EditPaste_Click()
Text1.SelText = Clipboard.GetText
End Sub

Private Sub Form_Load()
Clipboard.Clear
EditPaste.Enabled = False
End Sub

⌨️ 快捷键说明

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