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

📄 formfontlist.frm

📁 个人VB学习源码精选,自己学习时的一些编程小程序,希望对大家有帮助
💻 FRM
字号:
VERSION 5.00
Begin VB.Form formFontList 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Font List"
   ClientHeight    =   6810
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6345
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   340.5
   ScaleMode       =   2  'Point
   ScaleWidth      =   317.25
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.VScrollBar scrlUpDown 
      Height          =   5955
      Left            =   5955
      TabIndex        =   4
      Top             =   120
      Width           =   255
   End
   Begin VB.CommandButton cmndClose 
      Caption         =   "Close"
      Height          =   375
      Left            =   4380
      TabIndex        =   2
      Top             =   6300
      Width           =   1155
   End
   Begin VB.PictureBox pictContainer 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   5955
      Left            =   135
      ScaleHeight     =   296.25
      ScaleMode       =   2  'Point
      ScaleWidth      =   290.25
      TabIndex        =   0
      Top             =   120
      Width           =   5835
      Begin VB.PictureBox pictList 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   3435
         Left            =   420
         ScaleHeight     =   170.25
         ScaleMode       =   2  'Point
         ScaleWidth      =   164.25
         TabIndex        =   3
         Top             =   480
         Width           =   3315
      End
   End
   Begin VB.Label lablTransparent 
      Caption         =   "Transparent"
      Height          =   315
      Left            =   120
      TabIndex        =   1
      Top             =   6360
      Width           =   3195
   End
End
Attribute VB_Name = "formFontList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmndClose_Click()
    formFontList.Hide
    formMain.Show
End Sub

Private Sub Form_Load()
    Screen.MousePointer = 11
    pictList.Font.Size = 18
    fontslength = Screen.FontCount * pictList.TextHeight("Test")
    pictList.Top = 0
    pictList.Left = 0
    pictList.Width = pictContainer.ScaleWidth
    pictList.Height = fontslength
    scrlUpDown.Min = 0
    scrlUpDown.Max = pictList.Height - pictContainer.Height
    scrlUpDown.LargeChange = scrlUpDown.Max / 50
    scrlUpDown.SmallChange = scrlUpDown.Max / 250
    pictList.Cls
    pictList.FillStyle = vbSolid
    pictList.FillColor = QBColor(7)
    pictList.AutoRedraw = True
    pictList.Line (0, 0)-(pictList.ScaleWidth, pictList.ScaleHeight), QBColor(7), BF
    pictList.CurrentX = 0
    pictList.CurrentY = 0
    pictList.ForeColor = QBColor(5)
    For i = 0 To Screen.FontCount - 1
        pictList.Font.Name = Screen.Fonts(i)
        pictList.Print Screen.Fonts(i)
    Next i
    Screen.MousePointer = vbNormal
End Sub

Private Sub pictList_Click()
    pictList.FontTransparent = Not pictList.FontTransparent
    If pictList.FontTransparent = True Then
        lablTransparent.Caption = "Transparent"
    Else
        lablTransparent.Caption = "Opaque"
    End If
    scrlUpDown.Value = 0
    Form_Load
End Sub

Private Sub scrlUpDown_Change()
    pictList.Top = -scrlUpDown.Value
End Sub

⌨️ 快捷键说明

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