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

📄 例3_4_4.frm

📁 在VB5环境下开发的VB程序集,窗体控件源代码.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FRM3_4_3 
   BackColor       =   &H00FF80FF&
   Caption         =   "3-4-3:设计实例2--文本编辑器"
   ClientHeight    =   3990
   ClientLeft      =   1320
   ClientTop       =   1575
   ClientWidth     =   7140
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   18
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   3990
   ScaleWidth      =   7140
   Begin VB.CommandButton Command3 
      Height          =   495
      Left            =   5400
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Command2 
      Height          =   495
      Left            =   5400
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   2520
      Width           =   495
   End
   Begin VB.CommandButton Command1 
      Height          =   495
      Left            =   5400
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1800
      Width           =   495
   End
   Begin VB.TextBox Text1 
      Height          =   1935
      Left            =   480
      MultiLine       =   -1  'True
      TabIndex        =   0
      Top             =   1800
      Width           =   3975
   End
   Begin VB.Label Label2 
      BackColor       =   &H00C0FFFF&
      Caption         =   "要点:复制、剪切、粘贴的概念及解题思路"
      ForeColor       =   &H00FF0000&
      Height          =   495
      Left            =   240
      TabIndex        =   5
      Top             =   960
      Width           =   6735
   End
   Begin VB.Label Label1 
      BackColor       =   &H0080FFFF&
      Caption         =   " 重点考察Text属性和Seltext属性的用法"
      ForeColor       =   &H000000FF&
      Height          =   495
      Left            =   240
      TabIndex        =   4
      Top             =   240
      Width           =   6735
   End
End
Attribute VB_Name = "FRM3_4_3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim SelectStr As String
Private Sub Command1_Click()
SelectStr = Text1.SelText
Text1.SelText = ""
Text1.SetFocus
End Sub

Private Sub Command2_Click()
SelectStr = Text1.SelText
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Text1.SelText = SelectStr
Text1.SetFocus
End Sub

Private Sub Form_Load()
Command1.Picture = LoadPicture(App.Path + "\bw\cut.bmp")
Command2.Picture = LoadPicture(App.Path + "\bw\copy.bmp")
Command3.Picture = LoadPicture(App.Path + "\bw\paste.bmp")
End Sub

⌨️ 快捷键说明

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