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

📄 form4.frm

📁 加密文本编辑器 VB
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form4 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "颜色设置"
   ClientHeight    =   1545
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4605
   Icon            =   "Form4.frx":0000
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1545
   ScaleWidth      =   4605
   StartUpPosition =   1  '所有者中心
   Begin MSComDlg.CommonDialog Dialog1 
      Left            =   2520
      Top             =   67
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Comuse 
      Caption         =   "应用"
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   120
      Width           =   1095
   End
   Begin VB.CommandButton Comclose 
      Caption         =   "关闭"
      Height          =   375
      Left            =   3360
      TabIndex        =   4
      Top             =   840
      Width           =   1095
   End
   Begin VB.CommandButton Comsetupback 
      Caption         =   ">>"
      Height          =   375
      Left            =   1680
      TabIndex        =   3
      Top             =   840
      Width           =   495
   End
   Begin VB.CommandButton Comsetupfont 
      Caption         =   ">>"
      Height          =   375
      Left            =   1680
      TabIndex        =   2
      Top             =   120
      Width           =   495
   End
   Begin VB.Shape colorb 
      FillStyle       =   0  'Solid
      Height          =   495
      Left            =   1080
      Top             =   780
      Width           =   495
   End
   Begin VB.Shape colorf 
      FillStyle       =   0  'Solid
      Height          =   495
      Left            =   1080
      Top             =   60
      Width           =   495
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "背景颜色"
      Height          =   180
      Left            =   120
      TabIndex        =   1
      Top             =   937
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "字体颜色"
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   217
      Width           =   720
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Comclose_Click()
Unload Me
End Sub

Private Sub Comsetupback_Click()
Dialog1.CancelError = True
On Error GoTo ErrHandler
Dialog1.ShowColor
colorb.FillColor = Dialog1.Color
Comuse.Enabled = True
ErrHandler:
Exit Sub
End Sub

Private Sub Comsetupfont_Click()
Dialog1.CancelError = True
On Error GoTo ErrHandler
Dialog1.ShowColor
colorf.FillColor = Dialog1.Color
Comuse.Enabled = True

ErrHandler:
Exit Sub
End Sub

Private Sub Comuse_Click()
Form1.Text1.ForeColor = colorf.FillColor
Form1.Text1.BackColor = colorb.FillColor
Comuse.Enabled = False
End Sub

Private Sub Form_Load()
colorf.FillColor = Form1.Text1.ForeColor
colorb.FillColor = Form1.Text1.BackColor
Comuse.Enabled = False
End Sub

⌨️ 快捷键说明

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