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

📄 frmscan.frm

📁 金算盘软件代码
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{81110CCB-022B-11D3-A348-0080C89152FF}#1.3#0"; "ORAGLIST.OCX"
Object = "{6D940288-9F11-11CE-83FD-02608C3EC08A}#2.1#0"; "IMGEDIT.OCX"
Object = "{84926CA3-2941-101C-816F-0E6013114B7F}#1.0#0"; "IMGSCAN.OCX"
Begin VB.Form frmScan 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "图像扫描"
   ClientHeight    =   6615
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9165
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6615
   ScaleWidth      =   9165
   StartUpPosition =   2  '屏幕中心
   Begin ScanLibCtl.ImgScan IScan 
      Left            =   6990
      Top             =   5910
      _Version        =   65536
      _ExtentX        =   979
      _ExtentY        =   873
      _StockProps     =   0
      DestImageControl=   "ImgEdit1"
      FileType        =   3
      CompressionType =   0
      CompressionInfo =   0
   End
   Begin VB.CheckBox chkZoom 
      Caption         =   "缩放保存(&A)"
      Height          =   285
      Left            =   7860
      TabIndex        =   17
      Top             =   4170
      Width           =   1305
   End
   Begin ListRefer.ListText lstHead 
      Height          =   285
      Left            =   5580
      TabIndex        =   5
      Top             =   330
      Width           =   1155
      _ExtentX        =   2037
      _ExtentY        =   503
      CodeSort        =   -1  'True
      BackColor       =   -2147483643
      MaxLenth        =   30
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CommandButton cmdScan 
      Height          =   350
      Index           =   9
      Left            =   7890
      Style           =   1  'Graphical
      TabIndex        =   16
      Tag             =   "1012"
      Top             =   3630
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Caption         =   "属  性(&P)"
      Height          =   350
      Index           =   8
      Left            =   7890
      TabIndex        =   15
      Top             =   3270
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.ComboBox cmbChange 
      Height          =   300
      Index           =   1
      ItemData        =   "frmscan.frx":0000
      Left            =   7890
      List            =   "frmscan.frx":0002
      Style           =   2  'Dropdown List
      TabIndex        =   21
      Top             =   5430
      Width           =   1215
   End
   Begin VB.ComboBox cmbChange 
      Height          =   300
      Index           =   0
      Left            =   7890
      TabIndex        =   19
      Top             =   4800
      Width           =   1210
   End
   Begin MSComDlg.CommonDialog comDlg 
      Left            =   6360
      Top             =   5910
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton cmdScan 
      Caption         =   "扫  描(&S)"
      Height          =   350
      Index           =   4
      Left            =   7890
      TabIndex        =   11
      Top             =   2190
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Caption         =   "重扫描(&R)"
      Height          =   350
      Index           =   5
      Left            =   7890
      TabIndex        =   12
      Top             =   2550
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Height          =   350
      Index           =   0
      Left            =   7890
      Style           =   1  'Graphical
      TabIndex        =   7
      Tag             =   "1004"
      Top             =   750
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Height          =   350
      Index           =   1
      Left            =   7890
      Style           =   1  'Graphical
      TabIndex        =   8
      Tag             =   "1003"
      Top             =   1110
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Height          =   350
      Index           =   2
      Left            =   7890
      Style           =   1  'Graphical
      TabIndex        =   9
      Tag             =   "1001"
      Top             =   1470
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Height          =   350
      Index           =   3
      Left            =   7890
      Style           =   1  'Graphical
      TabIndex        =   10
      Tag             =   "1002"
      Top             =   1830
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin VB.CommandButton cmdScan 
      Caption         =   "删  除(&D)"
      Height          =   350
      Index           =   7
      Left            =   7890
      TabIndex        =   14
      Top             =   2910
      UseMaskColor    =   -1  'True
      Width           =   1210
   End
   Begin ImgeditLibCtl.ImgEdit IEdit 
      Height          =   5835
      Left            =   60
      TabIndex        =   22
      Top             =   690
      Width           =   7665
      _Version        =   131073
      _ExtentX        =   13520
      _ExtentY        =   10292
      _StockProps     =   96
      BorderStyle     =   1
      ImageControl    =   "ImgEdit1"
      BeginProperty AnnotationFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Times New Roman"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      AutoRefresh     =   -1  'True
      UndoBufferSize  =   135676160
      OcrZoneVisibility=   -4044
      AnnotationOcrType=   88
   End
   Begin VB.CommandButton cmdScan 
      Caption         =   "打  开(&O)"
      Height          =   350
      Index           =   6
      Left            =   7890
      TabIndex        =   13
      Top             =   2850
      UseMaskColor    =   -1  'True
      Visible         =   0   'False
      Width           =   1210
   End
   Begin VB.Label lblTitle 
      Height          =   180
      Index           =   5
      Left            =   6810
      TabIndex        =   6
      Top             =   390
      Width           =   885
   End
   Begin VB.Label lblTitle 
      Height          =   180
      Index           =   1
      Left            =   4890
      TabIndex        =   1
      Top             =   90
      Width           =   2805
   End
   Begin VB.Label lblTitle 
      Height          =   180
      Index           =   3
      Left            =   1500
      TabIndex        =   3
      Top             =   390
      Width           =   3315
   End
   Begin VB.Label lblTitle 
      Caption         =   "日期 1999-01-01"
      Height          =   180
      Index           =   2
      Left            =   90
      TabIndex        =   2
      Top             =   390
      Width           =   1350
   End
   Begin VB.Label lblBack 
      BackColor       =   &H8000000C&
      Caption         =   "Label1"
      Height          =   5835
      Left            =   90
      TabIndex        =   23
      Top             =   750
      Width           =   7695
   End
   Begin VB.Label lblTitle 
      Caption         =   "旋转(&V)"
      Height          =   180
      Index           =   7
      Left            =   7920
      TabIndex        =   20
      Top             =   5190
      Width           =   630
   End
   Begin VB.Label lblTitle 
      Caption         =   "缩放%(&Z)"
      Height          =   180
      Index           =   6
      Left            =   7920
      TabIndex        =   18
      Top             =   4560
      Width           =   810
   End
   Begin VB.Label lblTitle 
      Height          =   180
      Index           =   0
      Left            =   90
      TabIndex        =   0
      Top             =   90
      Width           =   4725
   End
   Begin VB.Label lblTitle 
      Caption         =   "编号(&H)"
      Height          =   180
      Index           =   4
      Left            =   4890
      TabIndex        =   4
      Top             =   390
      Width           =   630
   End
End
Attribute VB_Name = "frmScan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private m_blnScannerOK As Boolean
Private m_blnChanged As Boolean
Private m_TempPath As String
Private m_ImgPath As String
Private m_lngCustomerID As Long
Private m_strCode As String
Private m_lngImgID As Long
Private m_lngOrderID As Long
Private m_blnNoChoose As Boolean
Private m_strCodeBak As String

Private Sub IMsgBox(ByVal strText As String, Optional ByVal strTitle As String = "")
    If strTitle = "" Then
        strTitle = "提示信息"
    End If
    ShowMsg Me.hwnd, strText, MB_OK + MB_ICONINFORMATION + MB_SYSTEMMODAL, strTitle
End Sub

Private Sub EMsgBox(ByVal strText As String, Optional ByVal strTitle As String = "")
    If strTitle = "" Then
        strTitle = "警告信息"
    End If
    ShowMsg Me.hwnd, strText, MB_OK + MB_ICONEXCLAMATION + MB_SYSTEMMODAL, strTitle
End Sub

Private Function QMsgBox(ByVal strText As String, Optional ByVal strTitle As String = "") As Long
    If strTitle = "" Then
        strTitle = "提示信息"
    End If
    QMsgBox = ShowMsg(Me.hwnd, strText, MB_YESNO + MB_DEFBUTTON2 + MB_ICONQUESTION + MB_SYSTEMMODAL, strTitle)
End Function

Private Sub cmbChange_Click(Index As Integer)
    Select Case Index
    Case 0
        If cmbChange(Index).ListIndex = -1 Then
        ElseIf cmbChange(Index).ListIndex = 0 Then
            IEdit.FitTo 0
        ElseIf cmbChange(Index).ListIndex = 1 Then
            IEdit.FitTo 1
        ElseIf cmbChange(Index).ListIndex = 2 Then
            IEdit.FitTo 2
        ElseIf cmbChange(Index).ListIndex = 3 Then
            IEdit.FitTo 3
        ElseIf cmbChange(Index).ListIndex = 4 Then
            IEdit.Zoom = 100
            IEdit.Refresh
        End If
        m_blnChanged = True
    Case 1
        If cmbChange(Index).ListIndex = -1 Then
            
        ElseIf cmbChange(Index).ListIndex = 0 Then
            IEdit.RotateLeft 900
        ElseIf cmbChange(Index).ListIndex = 1 Then
            IEdit.RotateRight 900
        ElseIf cmbChange(Index).ListIndex = 2 Then
            IEdit.Flip
        End If
        m_blnChanged = True
    End Select
End Sub

⌨️ 快捷键说明

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