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

📄 frm12864.frm

📁 12864 lcd 的字模提取软件
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain 
   AutoRedraw      =   -1  'True
   Caption         =   "12864液晶自动化编程系统 3.0版(设计:肖宁杰)"
   ClientHeight    =   8715
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   12315
   FillColor       =   &H00FF0000&
   FillStyle       =   0  'Solid
   ForeColor       =   &H0000C000&
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   581
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   821
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "C代码生成框:"
      Height          =   3540
      Left            =   90
      TabIndex        =   3
      Top             =   5085
      Width           =   9630
      Begin VB.CommandButton cmdBrowse 
         Caption         =   "浏览..."
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   8595
         TabIndex        =   15
         Top             =   180
         Width           =   945
      End
      Begin VB.TextBox txtFile 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   825
         TabIndex        =   14
         Text            =   "CharData.h"
         Top             =   210
         Width           =   7725
      End
      Begin VB.TextBox txtCode 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   2895
         Left            =   90
         MultiLine       =   -1  'True
         ScrollBars      =   3  'Both
         TabIndex        =   4
         Text            =   "frm12864.frx":0000
         Top             =   555
         Width           =   9405
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "文件:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   180
         Left            =   210
         TabIndex        =   13
         Top             =   285
         Width           =   540
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "字体与字符设置"
      Height          =   8190
      Left            =   9960
      TabIndex        =   0
      Top             =   420
      Width           =   2250
      Begin MSComctlLib.ProgressBar pgb 
         Height          =   120
         Left            =   120
         TabIndex        =   16
         Top             =   1140
         Visible         =   0   'False
         Width           =   2055
         _ExtentX        =   3625
         _ExtentY        =   212
         _Version        =   393216
         Appearance      =   0
      End
      Begin VB.CommandButton cmdPrimarySmallFont 
         BackColor       =   &H00EAFFEA&
         Caption         =   "小字符首选字体"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   383
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   1590
         Width           =   1455
      End
      Begin VB.CommandButton cmdSecondarySmallFont 
         Caption         =   "小字符备用字体"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   383
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   3210
         Width           =   1455
      End
      Begin VB.CommandButton cmdPrimaryBigFont 
         Caption         =   "大字符首选字体"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   383
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   4995
         Width           =   1455
      End
      Begin VB.CommandButton cmdSecondaryBigFont 
         Caption         =   "大字符备用字体"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   383
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   6660
         Width           =   1455
      End
      Begin VB.TextBox txtChar 
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1020
         Left            =   105
         MultiLine       =   -1  'True
         TabIndex        =   1
         Text            =   "frm12864.frx":0092
         Top             =   255
         Width           =   2040
      End
      Begin VB.Label lblSecondarySmallFont 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Font"
         Height          =   1020
         Left            =   90
         TabIndex        =   7
         Top             =   3615
         Width           =   2040
      End
      Begin VB.Label lblPrimarySmallFont 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Font"
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1020
         Left            =   90
         TabIndex        =   5
         Top             =   1995
         Width           =   2040
      End
      Begin VB.Label lblPrimaryBigFont 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Font"
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1020
         Left            =   90
         TabIndex        =   11
         Top             =   5385
         Width           =   2040
      End
      Begin VB.Label lblSecondaryBigFont 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Font"
         Height          =   1020
         Left            =   90
         TabIndex        =   10
         Top             =   7065
         Width           =   2040
      End
   End
   Begin MSComDlg.CommonDialog cdlg 
      Left            =   9750
      Top             =   -30
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      CancelError     =   -1  'True
   End
   Begin VB.Shape shpLcdBorder 
      Height          =   4905
      Left            =   45
      Top             =   60
      Visible         =   0   'False
      Width           =   9690
   End
   Begin VB.Label lblXY 
      Appearance      =   0  'Flat
      AutoSize        =   -1  'True
      BorderStyle     =   1  'Fixed Single
      Caption         =   "Ln: 63, Col: 127"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   240
      Left            =   10305
      TabIndex        =   12
      Top             =   120
      Width           =   1500
   End
   Begin VB.Menu mnuMainFunction 
      Caption         =   "功能(&F)"
      Begin VB.Menu mnuUndo 
         Caption         =   "撤消"
         Shortcut        =   ^Z
      End
      Begin VB.Menu mnuClearAll 
         Caption         =   "全部清空"
         Shortcut        =   {F4}
      End
      Begin VB.Menu mnuGenImgAt0_0 
         Caption         =   "在(0,0)处生成点阵数据"
         Shortcut        =   {F5}
      End
      Begin VB.Menu mnuGenImgAtMouse 
         Caption         =   "在鼠标处生成点阵数据"
         Shortcut        =   {F6}
      End
      Begin VB.Menu mnuGenFullScreenData 
         Caption         =   "生成全屏点阵数据"
         Shortcut        =   {F7}
      End
      Begin VB.Menu mnuSep1 
         Caption         =   "-"
      End
      Begin VB.Menu mnuOneKeyAllCode 
         Caption         =   "一键生成所有代码(暴强)"
         Shortcut        =   {F8}
      End
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdPrimaryBigFont_Click()
  Dim sInvalidStr As String
  
  Call HightlightCmdBtn(cmdPrimaryBigFont)
  cdlg.FontName = mPrimaryBigFont.Name
  cdlg.FontSize = mPrimaryBigFont.Size
  
  On Error GoTo quit:
  cdlg.ShowFont
  Call SetTextOrLabelFontByCDlg(txtChar)
  sInvalidStr = GetFontHeightInvalidString(16)
  If sInvalidStr <> "" Then
    MsgBox "以下高度大于16的字符将使用备用字体:" & vbCrLf & sInvalidStr, vbExclamation, "警告"
  End If
  
  
  Call SetFontInfo(mPrimaryBigFont, cdlg.FontName, cdlg.FontSize)
  Call SetTextOrLabelFontByCDlg(lblPrimaryBigFont)
  Exit Sub
quit:
  Debug.Assert Err.Description = "Cancel was selected."
  txtChar.FontName = mPrimaryBigFont.Name
  txtChar.FontSize = mPrimaryBigFont.Size
End Sub

Private Sub cmdSecondaryBigFont_Click()
  Dim sInvalidStr As String
  
  Call HightlightCmdBtn(cmdSecondaryBigFont)
  cdlg.FontName = mSecondaryBigFont.Name
  cdlg.FontSize = mSecondaryBigFont.Size
  
  Do
    On Error GoTo quit:
    cdlg.ShowFont
    Call SetTextOrLabelFontByCDlg(txtChar)
    sInvalidStr = GetFontHeightInvalidString(16)
    If sInvalidStr <> "" Then
      MsgBox "以下字符的高度大于16,请重新选择:" & vbCrLf & sInvalidStr, vbCritical, "错误"

⌨️ 快捷键说明

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