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

📄 frmcheckpointentry.frm

📁 Data monkey是一个强大的是数据传输和转换应用程序。使用DataMonkey用户可以把复杂的文本文件格式
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "comctl32.ocx"
Begin VB.Form frmCheckPointEntry 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "CheckPoints"
   ClientHeight    =   5436
   ClientLeft      =   132
   ClientTop       =   240
   ClientWidth     =   8664
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5436
   ScaleWidth      =   8664
   ShowInTaskbar   =   0   'False
   Begin VB.Frame fraFields 
      Caption         =   "Fields"
      Height          =   2295
      Left            =   120
      TabIndex        =   13
      Top             =   2520
      Width           =   8415
      Begin ComctlLib.ListView lstFields 
         Height          =   1455
         Left            =   120
         TabIndex        =   24
         Top             =   240
         Width           =   3015
         _ExtentX        =   5313
         _ExtentY        =   2561
         View            =   3
         LabelWrap       =   0   'False
         HideSelection   =   0   'False
         _Version        =   327682
         ForeColor       =   -2147483640
         BackColor       =   -2147483643
         BorderStyle     =   1
         Appearance      =   0
         NumItems        =   1
         BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
            Text            =   "Name"
            Object.Width           =   2558
         EndProperty
      End
      Begin VB.CommandButton btnDeleteField 
         Caption         =   "Delete"
         Enabled         =   0   'False
         Height          =   375
         Left            =   2400
         TabIndex        =   28
         Top             =   1800
         Width           =   735
      End
      Begin VB.PictureBox picDnDataItem 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   3180
         Picture         =   "frmCheckPointEntry.frx":0000
         ScaleHeight     =   228
         ScaleWidth      =   228
         TabIndex        =   23
         Top             =   1080
         Width           =   255
      End
      Begin VB.PictureBox picUpDataItem 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   3180
         Picture         =   "frmCheckPointEntry.frx":0442
         ScaleHeight     =   228
         ScaleWidth      =   228
         TabIndex        =   22
         Top             =   600
         Width           =   255
      End
      Begin VB.CommandButton btnNewField 
         Caption         =   "Add"
         Height          =   375
         Left            =   1560
         TabIndex        =   21
         Top             =   1800
         Width           =   735
      End
      Begin VB.Frame fraActions 
         BorderStyle     =   0  'None
         Caption         =   "Actions"
         Height          =   2055
         Left            =   3480
         TabIndex        =   14
         Top             =   120
         Width           =   4815
         Begin ComctlLib.ListView lstFieldActions 
            Height          =   1215
            Left            =   60
            TabIndex        =   20
            Top             =   360
            Width           =   4455
            _ExtentX        =   7853
            _ExtentY        =   2138
            View            =   3
            LabelEdit       =   1
            LabelWrap       =   0   'False
            HideSelection   =   0   'False
            _Version        =   327682
            ForeColor       =   -2147483640
            BackColor       =   -2147483643
            BorderStyle     =   1
            Appearance      =   0
            NumItems        =   1
            BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
               Key             =   ""
               Object.Tag             =   ""
               Text            =   "Name"
               Object.Width           =   7056
            EndProperty
         End
         Begin VB.CommandButton btnEditFieldAction 
            Caption         =   "Edit..."
            Enabled         =   0   'False
            Height          =   375
            Left            =   2760
            TabIndex        =   19
            Top             =   1680
            Width           =   735
         End
         Begin VB.CommandButton btnAddFieldAction 
            Caption         =   "Add..."
            Height          =   375
            Left            =   1920
            TabIndex        =   18
            Top             =   1680
            Width           =   735
         End
         Begin VB.CommandButton btnDeleteFieldAction 
            Caption         =   "Delete"
            Enabled         =   0   'False
            Height          =   375
            Left            =   3600
            TabIndex        =   17
            Top             =   1680
            Width           =   735
         End
         Begin VB.PictureBox picUpFieldAction 
            Appearance      =   0  'Flat
            BackColor       =   &H80000005&
            ForeColor       =   &H80000008&
            Height          =   255
            Left            =   4560
            Picture         =   "frmCheckPointEntry.frx":0884
            ScaleHeight     =   228
            ScaleWidth      =   228
            TabIndex        =   16
            Top             =   600
            Width           =   255
         End
         Begin VB.PictureBox picDnFieldAction 
            Appearance      =   0  'Flat
            BackColor       =   &H80000005&
            ForeColor       =   &H80000008&
            Height          =   255
            Left            =   4560
            Picture         =   "frmCheckPointEntry.frx":0CC6
            ScaleHeight     =   228
            ScaleWidth      =   228
            TabIndex        =   15
            Top             =   1080
            Width           =   255
         End
         Begin VB.Label Label2 
            Caption         =   "Field Actions"
            Height          =   255
            Left            =   60
            TabIndex        =   26
            Top             =   120
            Width           =   1335
         End
      End
   End
   Begin VB.Frame fraCheckpoints 
      Caption         =   "Lines"
      Height          =   2295
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   8415
      Begin ComctlLib.ListView lstCheckPoints 
         Height          =   1455
         Left            =   120
         TabIndex        =   2
         Top             =   240
         Width           =   3015
         _ExtentX        =   5313
         _ExtentY        =   2561
         View            =   3
         LabelWrap       =   0   'False
         HideSelection   =   0   'False
         _Version        =   327682
         ForeColor       =   -2147483640
         BackColor       =   -2147483643
         BorderStyle     =   1
         Appearance      =   0
         NumItems        =   1
         BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
            Text            =   "Name"
            Object.Width           =   2558
         EndProperty
      End
      Begin VB.CommandButton btnDeleteLine 
         Caption         =   "Delete"
         Enabled         =   0   'False
         Height          =   375
         Left            =   2400
         TabIndex        =   27
         Top             =   1800
         Width           =   735
      End
      Begin VB.Frame Frame2 
         BorderStyle     =   0  'None
         Caption         =   "Actions"
         Height          =   1935
         Left            =   3480
         TabIndex        =   6
         Top             =   240
         Width           =   4815
         Begin ComctlLib.ListView lstActions 
            Height          =   1215
            Left            =   60
            TabIndex        =   12
            Top             =   240
            Width           =   4455
            _ExtentX        =   7853
            _ExtentY        =   2138
            View            =   3
            LabelEdit       =   1
            LabelWrap       =   0   'False
            HideSelection   =   0   'False
            _Version        =   327682
            ForeColor       =   -2147483640
            BackColor       =   -2147483643
            BorderStyle     =   1
            Appearance      =   0
            NumItems        =   1
            BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
               Key             =   ""
               Object.Tag             =   ""
               Text            =   "Action"
               Object.Width           =   7056
            EndProperty
         End
         Begin VB.CommandButton btnAddStep 
            Caption         =   "Add..."
            Height          =   375
            Left            =   2040
            TabIndex        =   11
            Top             =   1560
            Width           =   735
         End
         Begin VB.CommandButton btnEditStep 
            Caption         =   "Edit..."
            Enabled         =   0   'False
            Height          =   375
            Left            =   2880
            TabIndex        =   10
            Top             =   1560
            Width           =   735
         End
         Begin VB.CommandButton btnDelete 
            Caption         =   "Delete"
            Enabled         =   0   'False
            Height          =   375
            Left            =   3720
            TabIndex        =   9
            Top             =   1560
            Width           =   735
         End
         Begin VB.PictureBox picUpAction 
            Appearance      =   0  'Flat
            BackColor       =   &H80000005&
            ForeColor       =   &H80000008&
            Height          =   255
            Left            =   4560
            Picture         =   "frmCheckPointEntry.frx":1108
            ScaleHeight     =   228
            ScaleWidth      =   228
            TabIndex        =   8
            Top             =   480
            Width           =   255
         End
         Begin VB.PictureBox picDnAction 
            Appearance      =   0  'Flat
            BackColor       =   &H80000005&
            ForeColor       =   &H80000008&
            Height          =   255
            Left            =   4560
            Picture         =   "frmCheckPointEntry.frx":154A
            ScaleHeight     =   228
            ScaleWidth      =   228
            TabIndex        =   7
            Top             =   960
            Width           =   255
         End
         Begin VB.Label Label1 
            Caption         =   "Line Actions"
            Height          =   255
            Left            =   0
            TabIndex        =   25
            Top             =   0
            Width           =   1335
         End
      End
      Begin VB.PictureBox picUpCheckpoint 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   3180
         Picture         =   "frmCheckPointEntry.frx":198C
         ScaleHeight     =   228
         ScaleWidth      =   228
         TabIndex        =   5
         Top             =   600
         Width           =   255
      End
      Begin VB.PictureBox picDnCheckpoint 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   3180
         Picture         =   "frmCheckPointEntry.frx":1DCE
         ScaleHeight     =   228
         ScaleWidth      =   228
         TabIndex        =   4
         Top             =   1080
         Width           =   255
      End
      Begin VB.CommandButton btnAddItem 
         Caption         =   "Add"
         Height          =   375
         Left            =   1560
         TabIndex        =   3
         Top             =   1800
         Width           =   735
      End
   End
   Begin VB.CommandButton btnClose 
      Caption         =   "&Close"
      Height          =   375
      Left            =   7680
      TabIndex        =   0
      Top             =   4920
      Width           =   855
   End
End
Attribute VB_Name = "frmCheckPointEntry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' DataMonkey Data Conversion Application. Written by Theodore L. Ward
' Copyright (C) 2002 AstroComma Incorporated.
'
' This program is free software; you can redistribute it and/or
' modify it under the terms of the GNU General Public License
' as published by the Free Software Foundation; either version 2
' of the License, or (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program; if not, write to the Free Software
' Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
' The author may be contacted at:
' TheodoreWard@Hotmail.com or TheodoreWard@Yahoo.com

Option Explicit
Dim mDataPointBeingEdited As String

Private Sub btnAddFieldAction_Click()
    Dim cp As CInputRecord
    Dim di As CInputField
    
    ' Get the DataItem we are working with.
    Set cp = GImport.GetCheckPointByName(Me.lstCheckPoints.SelectedItem.Text)
    Set di = cp.GetDataPoint(Me.lstFields.SelectedItem.key)
    
    ' Load the form which will add the new action object.
    frmSelectActionType.Initialize _
        eCmdApplications.appDataItem, di.name, di.GetActions
    
    frmSelectActionType.Show vbModal
    
    If GFormReturnValue = vbOK Then
        ChangeFieldActionList
        ' Need to save now!
        GImport.dirty = True
    End If
    
    Set cp = Nothing
    Set di = Nothing

    ' Update the status of the various buttons.
    SetButtonStatus
    
End Sub

Private Sub btnAddItem_Click()

    Dim cp As CInputRecord
    
    ' Add a new item with a default name.
    Set cp = lfcAddCheckpoint(GImport, Me.lstCheckPoints)
    
    ' If the item was successfully added, enable it for editing.
    If Not cp Is Nothing Then
        'EditItem cp
        ' Need to save now!
        GImport.dirty = True
    End If
    
    ' Update the status of the various buttons.
    SetButtonStatus
    
End Sub

Private Sub btnAddStep_Click()
    Dim cp As CInputRecord
    Set cp = GImport.GetCheckPointByName(lstCheckPoints.SelectedItem.Text)
    If lfcAddCheckpointAction(cp, lstActions, GImport) Then
        ' Need to save now!
        GImport.dirty = True
        ' Update the status of the various buttons.
        SetButtonStatus
    End If
End Sub

Private Sub btnClose_Click()
    Unload Me
End Sub

Private Sub btnDelete_Click()
    Dim cp As CInputRecord
    Dim act As Object
    
    Set cp = GImport.GetCheckPointByName(lstCheckPoints.SelectedItem.Text)
    If cp Is Nothing Then Exit Sub
    cp.GetActions.Remove Me.lstActions.SelectedItem.index
    cp.GetActions.Reorder
    lfcLoadActionList cp.GetActions, lstActions

    ' Need to save now!
    GImport.dirty = True

    ' Update the status of the various buttons.
    SetButtonStatus

End Sub

Private Sub btnDeleteField_Click()
    
    Dim cp As CInputRecord
    
    Set cp = GImport.GetCheckPointByName(lstCheckPoints.SelectedItem.Text)
    If cp Is Nothing Then Exit Sub

    ' Add a new item with a default name.
    lfcDeleteField cp, lstFields

    ' Need to save now!
    GImport.dirty = True

⌨️ 快捷键说明

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