VERSION 5.00
Begin VB.Form frmInfo 
   BackColor       =   &H00404040&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "  :: Skin Info ::"
   ClientHeight    =   3135
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   3690
   ControlBox      =   0   'False
   FillColor       =   &H00404040&
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmInfo.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3135
   ScaleWidth      =   3690
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdOK 
      Appearance      =   0  'Flat
      BackColor       =   &H00404040&
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   255
      Left            =   2160
      TabIndex        =   8
      Top             =   2760
      Width           =   1455
   End
   Begin VB.Frame Frame1 
      Appearance      =   0  'Flat
      BackColor       =   &H00404040&
      Caption         =   "Optional Info"
      ForeColor       =   &H00FFFFFF&
      Height          =   2175
      Left            =   120
      TabIndex        =   2
      Top             =   480
      Width           =   3495
      Begin VB.CommandButton cmdAdd 
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "Add Field"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1440
         Width           =   1545
      End
      Begin VB.ListBox lstFields 
         Appearance      =   0  'Flat
         Height          =   810
         ItemData        =   "frmInfo.frx":038A
         Left            =   120
         List            =   "frmInfo.frx":0397
         TabIndex        =   4
         Top             =   600
         Width           =   1545
      End
      Begin VB.TextBox txtData 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   1800
         TabIndex        =   3
         Top             =   600
         Width           =   1575
      End
      Begin VB.Label Label4 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Field (select one)"
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   360
         Width           =   1545
      End
      Begin VB.Label Label3 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "Value"
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   1800
         TabIndex        =   7
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label2 
         BackColor       =   &H00404040&
         Caption         =   "*Remove fields by pressing delete"
         ForeColor       =   &H00FFFFFF&
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   1770
         Visible         =   0   'False
         Width           =   3015
      End
   End
   Begin VB.TextBox txtName 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFFFFF&
      Height          =   285
      Left            =   960
      TabIndex        =   0
      Top             =   120
      Width           =   2655
   End
   Begin VB.Label Label1 
      BackColor       =   &H00404040&
      Caption         =   "Skin Name:"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   825
   End
End
Attribute VB_Name = "frmInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAdd_Click()
    Dim fieldName As String
    fieldName = InputBox("Enter name of field")
    If fieldName <> "" Then
        fieldName = Replace(fieldName, " ", "_", 1)
        lstFields.AddItem fieldName
        ReDim Preserve Dat(lstFields.ListCount) As String
    End If
    
    lstFields.ListIndex = lstFields.ListCount - 1
    
    txtData.SetFocus
End Sub

Private Sub cmdOK_Click()
    Me.Hide
End Sub

Private Sub Form_Load()
    ReDim Dat(3) As String
End Sub

Private Sub lstFields_Click()
    If lstFields.ListIndex <> -1 Then
        txtData.Text = Dat(lstFields.ListIndex)
    End If
    
    txtData.SetFocus
End Sub

Private Sub lstFields_KeyDown(KeyCode As Integer, Shift As Integer)
    'MsgBox "Not implemented yet"
End Sub

Private Sub txtData_Change()
    If lstFields.ListCount <> 0 And lstFields.ListIndex > -1 Then
        Dat(lstFields.ListIndex) = txtData
    End If
End Sub

Private Sub txtData_GotFocus()
    Call sel(txtData)
End Sub

Sub sel(oBj As Object)
    oBj.SelStart = 0
    oBj.SelLength = Len(oBj)
End Sub

Private Sub txtName_GotFocus()
    Call sel(txtName)
End Sub
