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

📄 frmword.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 = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmword 
   Caption         =   "Word 2000 By Imthiaz Rafiq imthiazrafiq@hotmail.com"
   ClientHeight    =   6810
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   8895
   Icon            =   "frmWord.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   6810
   ScaleWidth      =   8895
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer Timer1 
      Interval        =   2000
      Left            =   3840
      Top             =   3420
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0FFFF&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   90
      TabIndex        =   13
      Text            =   "Font Style : ABCDEFG abcdefgh 1234556"
      Top             =   600
      Visible         =   0   'False
      Width           =   6075
   End
   Begin VB.Frame Frame1 
      BorderStyle     =   0  'None
      Height          =   585
      Left            =   30
      TabIndex        =   4
      Top             =   5850
      Width           =   8655
      Begin VB.CommandButton Command4 
         Caption         =   "Print"
         Height          =   465
         Left            =   6690
         TabIndex        =   12
         Top             =   30
         Width           =   1185
      End
      Begin VB.CommandButton Command3 
         Caption         =   "Load"
         Height          =   465
         Left            =   3810
         TabIndex        =   11
         Top             =   30
         Width           =   1185
      End
      Begin VB.CommandButton Command2 
         Caption         =   "Save"
         Height          =   465
         Left            =   5250
         TabIndex        =   10
         Top             =   30
         Width           =   1185
      End
      Begin MSForms.ToggleButton Ali0 
         Height          =   465
         Left            =   180
         TabIndex        =   9
         Top             =   30
         Width           =   615
         BackColor       =   -2147483633
         ForeColor       =   -2147483630
         DisplayStyle    =   6
         Size            =   "1085;820"
         Value           =   "0"
         Caption         =   "L"
         FontHeight      =   165
         FontCharSet     =   0
         FontPitchAndFamily=   2
         ParagraphAlign  =   3
      End
      Begin MSForms.ToggleButton Ali1 
         Height          =   465
         Left            =   1605
         TabIndex        =   8
         Top             =   30
         Width           =   615
         BackColor       =   -2147483633
         ForeColor       =   -2147483630
         DisplayStyle    =   6
         Size            =   "1085;820"
         Value           =   "0"
         Caption         =   "R"
         FontHeight      =   165
         FontCharSet     =   0
         FontPitchAndFamily=   2
         ParagraphAlign  =   3
      End
      Begin MSForms.ToggleButton Ali2 
         Height          =   465
         Left            =   885
         TabIndex        =   7
         Top             =   30
         Width           =   615
         BackColor       =   -2147483633
         ForeColor       =   -2147483630
         DisplayStyle    =   6
         Size            =   "1085;820"
         Value           =   "0"
         Caption         =   "C"
         FontHeight      =   165
         FontCharSet     =   0
         FontPitchAndFamily=   2
         ParagraphAlign  =   3
      End
      Begin VB.Label Label2 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Color"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FFFFFF&
         Height          =   465
         Left            =   3120
         TabIndex        =   6
         Top             =   30
         Width           =   615
      End
      Begin MSForms.ToggleButton Bulletx 
         Height          =   465
         Left            =   2310
         TabIndex        =   5
         Top             =   30
         Width           =   615
         BackColor       =   -2147483633
         ForeColor       =   -2147483630
         DisplayStyle    =   6
         Size            =   "1085;820"
         Value           =   "0"
         Caption         =   "*"
         FontHeight      =   165
         FontCharSet     =   0
         FontPitchAndFamily=   2
         ParagraphAlign  =   3
      End
   End
   Begin MSComDlg.CommonDialog Cmdc 
      Left            =   1800
      Top             =   3180
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      CancelError     =   -1  'True
   End
   Begin MSComctlLib.Toolbar Tol 
      Align           =   1  'Align Top
      Height          =   420
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   8895
      _ExtentX        =   15690
      _ExtentY        =   741
      ButtonWidth     =   1561
      Appearance      =   1
      TextAlignment   =   1
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   6
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   " B       "
            Key             =   "Bold"
            Style           =   5
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   " I        "
            Key             =   "Italics"
            Style           =   5
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   " U       "
            Key             =   "Underline"
            Style           =   5
         EndProperty
      EndProperty
      BorderStyle     =   1
      Begin VB.ComboBox FontSizeX 
         Height          =   315
         Left            =   6630
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   30
         Width           =   1845
      End
      Begin VB.ComboBox Fontnames 
         Height          =   315
         Left            =   3720
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   30
         Width           =   2805
      End
   End
   Begin RichTextLib.RichTextBox PrintX 
      Height          =   4995
      Left            =   60
      TabIndex        =   0
      Top             =   540
      Width           =   8745
      _ExtentX        =   15425
      _ExtentY        =   8811
      _Version        =   393217
      ScrollBars      =   3
      Appearance      =   0
      TextRTF         =   $"frmWord.frx":0442
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "OCR A Extended"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Menu mnuedit 
      Caption         =   "&Edit"
      Begin VB.Menu mnubold 
         Caption         =   "Bold"
      End
      Begin VB.Menu mnuunderline 
         Caption         =   "Underline"
      End
      Begin VB.Menu muitalics 
         Caption         =   "Italics"
      End
      Begin VB.Menu Mnufontname 
         Caption         =   "Font Name"
         Begin VB.Menu mnufonts 
            Caption         =   "X"
            Index           =   0
         End
      End
      Begin VB.Menu mnufontsize 
         Caption         =   "Font Size"
         Begin VB.Menu mnusize 
            Caption         =   "8"
            Index           =   0
         End
      End
   End
End
Attribute VB_Name = "frmword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim I As Integer
Dim Fonter(300) As String



Private Sub Ali0_Click()
  Ali1.Value = False
  Ali2.Value = False
  If Ali0.Value = True Then PrintX.SelAlignment = 0
End Sub
Private Sub Ali1_Click()
  Ali0.Value = False
  Ali2.Value = False
  If Ali1.Value = True Then PrintX.SelAlignment = 1
End Sub
Private Sub Ali2_Click()
  Ali1.Value = False
  Ali0.Value = False
  If Ali2.Value = True Then PrintX.SelAlignment = 2
End Sub

Private Sub Bulletx_Click()
If Bulletx.Value = True Then
  PrintX.SelBullet = True
Else
  PrintX.SelBullet = False
End If
End Sub





Private Sub Command2_Click()
Dim XD As String

On Error GoTo dd
Cmdc.Filter = "Rich Text Format (*.RTF)|*.rtf|Text Document (*.TXT)|*.txt"
Cmdc.DialogTitle = "Save a Rich Text File "
Cmdc.FilterIndex = 0
Cmdc.ShowSave
XD = Cmdc.FileName
If Cmdc.FilterIndex = 1 Then
  PrintX.SaveFile Cmdc.FileName, 0
ElseIf Cmdc.FilterIndex = 2 Then
  PrintX.SaveFile Cmdc.FileName, 1
End If

dd:

End Sub

⌨️ 快捷键说明

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