?? frmselectoutputdeftype.frm
字號:
VERSION 5.00
Begin VB.Form frmSelectOutputDefType
Caption = "New Output Source"
ClientHeight = 2184
ClientLeft = 60
ClientTop = 348
ClientWidth = 3720
LinkTopic = "Form1"
ScaleHeight = 2184
ScaleWidth = 3720
StartUpPosition = 3 'Windows Default
Begin VB.ListBox lstOutputTypes
Appearance = 0 'Flat
Height = 792
Left = 120
TabIndex = 2
Top = 720
Width = 3495
End
Begin VB.CommandButton btnCreate
Caption = "C&reate"
Default = -1 'True
Height = 375
Left = 2760
TabIndex = 1
Top = 1680
Width = 855
End
Begin VB.CommandButton btnCancel
Caption = "&Cancel"
Height = 375
Left = 1800
TabIndex = 0
Top = 1680
Width = 855
End
Begin VB.Label Label1
Caption = "What type of data will the new Output Source be based upon?"
Height = 495
Left = 120
TabIndex = 3
Top = 120
Width = 3375
End
End
Attribute VB_Name = "frmSelectOutputDefType"
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
Private mSchema As COutputSchema
Private Sub btnCancel_Click()
GFormReturnValue = vbCancel
Unload Me
End Sub
Private Sub btnCreate_Click()
CreateOutputDefinition
End Sub
Private Sub CreateOutputDefinition()
If lstOutputTypes.ListIndex < 0 Then
LogError "frmSelectOutputDefType", "btnCreate", "You must select an item to create.", False
Exit Sub
End If
' Hide our modal form.
Me.Hide
' Create a new item.
mSchema.SchemaType = lstOutputTypes.ItemData(lstOutputTypes.ListIndex)
' Edit the schema.
mSchema.Edit
Unload Me
End Sub
Public Sub Initialize(ByRef obj As COutputSchema)
Dim i As Integer
Set mSchema = obj
With lstOutputTypes
' Fill in the list of output types.
For i = 1 To GOutputID.GetNumOutputSources
' Add the description to the listbox
.AddItem GOutputID.GetOutputSourceName(i)
' Store the cmdtype as the itemdata
.ItemData(.ListCount - 1) = i
Next i
' Select the first item in the list by default.
.ListIndex = 0
End With
End Sub
Private Sub Form_Load()
GFormReturnValue = vbCancel
End Sub
Private Sub lstOutputTypes_DblClick()
CreateOutputDefinition
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -