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

📄 frmmypad.frm

📁 加密日记,解密与加密隐私文件!~~~~~~~~~~~~~~~~
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form FrmMyPad 
   Caption         =   "加密日记本"
   ClientHeight    =   7035
   ClientLeft      =   165
   ClientTop       =   855
   ClientWidth     =   8250
   Icon            =   "FrmMyPad.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   7035
   ScaleWidth      =   8250
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   5160
      Top             =   720
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin RichTextLib.RichTextBox RichTextBox1 
      Height          =   4215
      Left            =   240
      TabIndex        =   2
      Top             =   1440
      Width           =   6135
      _ExtentX        =   10821
      _ExtentY        =   7435
      _Version        =   393217
      ScrollBars      =   3
      TextRTF         =   $"FrmMyPad.frx":0442
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   615
      Left            =   0
      TabIndex        =   1
      Top             =   6420
      Width           =   8250
      _ExtentX        =   14552
      _ExtentY        =   1085
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   5
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   3
            AutoSize        =   1
            Enabled         =   0   'False
            Object.Width           =   2778
            TextSave        =   "Ins"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   1
            AutoSize        =   1
            Enabled         =   0   'False
            Object.Width           =   2778
            TextSave        =   "CAPS"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   2
            AutoSize        =   1
            Object.Width           =   2778
            TextSave        =   "NUM"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            AutoSize        =   1
            Object.Width           =   2778
            TextSave        =   "20:39"
         EndProperty
         BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   2778
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   4200
      Top             =   480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   6
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":04D1
            Key             =   "new"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":0923
            Key             =   "open"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":0D75
            Key             =   "save"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":11C7
            Key             =   "copy"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":1561
            Key             =   "cut"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMyPad.frx":19B3
            Key             =   "paste"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   660
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   8250
      _ExtentX        =   14552
      _ExtentY        =   1164
      ButtonWidth     =   1032
      ButtonHeight    =   1005
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   7
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "new"
            Object.ToolTipText     =   "新建文档"
            ImageKey        =   "new"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "open"
            Object.ToolTipText     =   "打开文件"
            ImageKey        =   "open"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "save"
            Object.ToolTipText     =   "保存文档"
            ImageKey        =   "save"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "copy"
            Object.ToolTipText     =   "复制"
            ImageKey        =   "copy"
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "cut"
            Object.ToolTipText     =   "剪切"
            ImageKey        =   "cut"
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "paste"
            Object.ToolTipText     =   "粘贴"
            ImageKey        =   "paste"
         EndProperty
      EndProperty
   End
   Begin VB.Menu menuFile 
      Caption         =   "文件(&F)"
      Begin VB.Menu menuNew 
         Caption         =   "新建(&N)"
      End
      Begin VB.Menu menuOpen 
         Caption         =   "打开(&O)"
      End
      Begin VB.Menu menuSave 
         Caption         =   "保存(&S)"
         Shortcut        =   ^S
      End
      Begin VB.Menu menuSaveAs 
         Caption         =   "另存(&A)"
      End
      Begin VB.Menu menuPrint 
         Caption         =   "打印(&P)"
         Shortcut        =   ^P
      End
      Begin VB.Menu menuBar1 
         Caption         =   "-"
      End
      Begin VB.Menu menuExit 
         Caption         =   "退出(&E)"
      End
   End
   Begin VB.Menu menuEdit 
      Caption         =   "编辑(&E)"
      Begin VB.Menu menuCopy 
         Caption         =   "复制(&C)"
      End
      Begin VB.Menu menuCut 
         Caption         =   "剪切(&T)"
      End
      Begin VB.Menu menuPaste 
         Caption         =   "粘贴(&P)"
      End
      Begin VB.Menu menuFont 
         Caption         =   "字体(&F)"
         Shortcut        =   ^F
      End
      Begin VB.Menu menuSelectAll 
         Caption         =   "全选(&A)"
      End
   End
   Begin VB.Menu menuFormat 
      Caption         =   "格式(&S)"
      Begin VB.Menu menuLeft 
         Caption         =   "左对齐(&L)"
      End
      Begin VB.Menu menuRight 
         Caption         =   "右对齐(&R)"
      End
      Begin VB.Menu menuCenter 
         Caption         =   "居中(&C)"
      End
      Begin VB.Menu menuBar2 
         Caption         =   "-"
      End
      Begin VB.Menu menuItalic 
         Caption         =   "斜体"
      End
      Begin VB.Menu menuBold 
         Caption         =   "粗体"
      End
      Begin VB.Menu menuUnderline 
         Caption         =   "下划线"
      End
   End
   Begin VB.Menu menuTool 
      Caption         =   "工具(&T)"
      Begin VB.Menu menuEncode1 
         Caption         =   "文字加密1(&C)"
      End
      Begin VB.Menu menuDecode1 
         Caption         =   "文字解密1(&D)"
      End
      Begin VB.Menu menuEncode2 
         Caption         =   "文字加密2"
      End
      Begin VB.Menu menuDecode2 
         Caption         =   "文字解密2"
      End
   End
End
Attribute VB_Name = "FrmMyPad"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim SaveFlag As Boolean
Dim MyDocName As String




Private Sub Form_Load()
    Toolbar1.Buttons(3).Enabled = False
    Toolbar1.Buttons(5).Enabled = False
    Toolbar1.Buttons(6).Enabled = False
    Toolbar1.Buttons(7).Enabled = False
    
    menuSave.Enabled = False
    menuSaveAs.Enabled = False
    menuPrint.Enabled = False
    menuEdit.Enabled = False
    
    RichTextBox1.Enabled = False
    RichTextBox1.Text = ""
    SaveFlag = True
    MyDocName = ""
    
    
    
    StatusBar1.Panels(5).Text = "其他状态信息"

End Sub


Private Sub Form_Resize()
    Dim rtbL As Long
    Dim rtbT As Long
    Dim rtbH As Long
    Dim rtbW As Long
    
    rtbL = 100
    rtbT = 100 + Toolbar1.ButtonHeight
    rtbH = Me.ScaleHeight - rtbT - StatusBar1.Height
    rtbW = Me.ScaleWidth - 200
    RichTextBox1.Move rtbL, rtbT, rtbW, rtbH
    RichTextBox1.RightMargin = RichTextBox1.Width - 100

End Sub

Private Sub Form_Unload(Cancel As Integer)
    menuExit_Click
    'Unload FrmLogin
    

End Sub

Private Sub menuBold_Click()
    RichTextBox1.SelBold = Not RichTextBox1.SelBold
End Sub

Private Sub menuCenter_Click()
    RichTextBox1.SelAlignment = rtfCenter
End Sub

Private Sub menuCopy_Click()
    SendKeys "^C", True '模拟组合键盘 Ctrl+C
End Sub

Private Sub menuCut_Click()
    SendKeys "^X", True '模拟组合键盘 Ctrl+X
End Sub

Private Sub menuDecode1_Click()
    Discode1
End Sub

Private Sub menuDecode2_Click()

⌨️ 快捷键说明

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