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

📄 frmoutputproperties.frm

📁 Data monkey是一个强大的是数据传输和转换应用程序。使用DataMonkey用户可以把复杂的文本文件格式
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmOutputProperties 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Output Links properties"
   ClientHeight    =   2136
   ClientLeft      =   48
   ClientTop       =   336
   ClientWidth     =   6912
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2136
   ScaleWidth      =   6912
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton btnSetupOutput 
      Caption         =   "&Setup Output..."
      Enabled         =   0   'False
      Height          =   315
      Left            =   3000
      TabIndex        =   9
      Top             =   1080
      Width           =   1335
   End
   Begin VB.CommandButton btnCancel 
      Cancel          =   -1  'True
      Caption         =   "&Cancel"
      Height          =   435
      Left            =   5880
      TabIndex        =   8
      Top             =   1560
      Width           =   915
   End
   Begin VB.ComboBox cboSchemaType 
      Appearance      =   0  'Flat
      Height          =   315
      ItemData        =   "frmOutputProperties.frx":0000
      Left            =   1140
      List            =   "frmOutputProperties.frx":0002
      Style           =   2  'Dropdown List
      TabIndex        =   6
      Top             =   1080
      Width           =   1755
   End
   Begin VB.CommandButton btnOk 
      Caption         =   "&Ok"
      Default         =   -1  'True
      Height          =   435
      Left            =   4740
      TabIndex        =   4
      Top             =   1560
      Width           =   915
   End
   Begin VB.CommandButton btnBrowse 
      Caption         =   "&Browse..."
      Height          =   315
      Left            =   5880
      TabIndex        =   3
      Top             =   600
      Width           =   915
   End
   Begin VB.TextBox txtSchemaPath 
      Height          =   315
      Left            =   1140
      TabIndex        =   1
      Top             =   600
      Width           =   4575
   End
   Begin VB.TextBox txtName 
      Height          =   315
      Left            =   1140
      TabIndex        =   0
      Top             =   120
      Width           =   4575
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "Output to"
      Height          =   195
      Left            =   120
      TabIndex        =   7
      Top             =   1140
      Width           =   660
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "Output Schema Path"
      Height          =   390
      Left            =   120
      TabIndex        =   5
      Top             =   540
      Width           =   1005
      WordWrap        =   -1  'True
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Name"
      Height          =   195
      Left            =   120
      TabIndex        =   2
      Top             =   180
      Width           =   420
   End
End
Attribute VB_Name = "frmOutputProperties"
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

Private mOL As COutputLinks
Private mPreviousPath As String

Private Sub btnBrowse_Click()
    If mOL.LocateSchemaFile <> "" Then
        Me.txtSchemaPath = mOL.SchemaFileLastKnownLocation
    End If
End Sub

Private Sub btnCancel_Click()
    Unload Me
End Sub

Private Sub btnOk_Click()
    Dim temp As String
    
    ' Update the general schema properties.
    mOL.OutputTo = cboSchemaType.ItemData(cboSchemaType.ListIndex)
    mOL.name = Me.txtName
    mOL.SchemaFileLastKnownLocation = Trim(Me.txtSchemaPath)
    GetNameFromFile Me.txtSchemaPath, temp
    mOL.OutputSourceName = temp
    
    GImport.dirty = True

    GFormReturnValue = vbOK
    Unload Me
End Sub

Private Sub btnSetupOutput_Click()
    If mOL.OutputTo = otASCII Then
        ' Bring up properties.
    End If
End Sub

Private Sub Form_Load()

    Dim i As Integer

    GFormReturnValue = vbCancel
    Me.top = (Screen.Height - Me.Height) / 2
    Me.left = (Screen.Width - Me.Width) / 2

    Me.txtName = mOL.name
    Me.txtSchemaPath = mOL.SchemaFileLastKnownLocation
    For i = 1 To GOutputID.GetNumOutputSources
        cboSchemaType.AddItem GOutputID.GetOutputSourceName(i)
        cboSchemaType.ItemData(i - 1) = GOutputID.GetOutputSourceID(i)
    Next i
    
    cboSchemaType.Text = GOutputID.GetOutputSourceName(mOL.OutputTo)
    
End Sub

Public Sub Initialize(parent As COutputLinks)
    Set mOL = parent
    mPreviousPath = mOL.SchemaFileLastKnownLocation
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    
    If UnloadMode = vbFormControlMenu Then
        mOL.SchemaFileLastKnownLocation = mPreviousPath
    End If

End Sub

⌨️ 快捷键说明

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