VERSION 5.00
Begin VB.Form frmDelays 
   BackColor       =   &H00404040&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "  :: Layout Delays ::"
   ClientHeight    =   1980
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   3705
   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            =   "frmDelays.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1980
   ScaleWidth      =   3705
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdOK 
      Appearance      =   0  'Flat
      BackColor       =   &H00404040&
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   255
      Left            =   1950
      TabIndex        =   4
      Top             =   1620
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Appearance      =   0  'Flat
      BackColor       =   &H00404040&
      Caption         =   "Delays"
      ForeColor       =   &H00FFFFFF&
      Height          =   1425
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3495
      Begin VB.ListBox lstFields 
         Appearance      =   0  'Flat
         Height          =   615
         ItemData        =   "frmDelays.frx":038A
         Left            =   120
         List            =   "frmDelays.frx":0397
         TabIndex        =   2
         Top             =   600
         Width           =   1545
      End
      Begin VB.TextBox txtData 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   1800
         TabIndex        =   1
         Top             =   600
         Width           =   1575
      End
      Begin VB.Label Label1 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "milliseconds"
         ForeColor       =   &H00FFFFFF&
         Height          =   195
         Left            =   2460
         TabIndex        =   6
         Top             =   900
         Width           =   885
      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        =   5
         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        =   3
         Top             =   360
         Width           =   1575
      End
   End
End
Attribute VB_Name = "frmDelays"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOK_Click()
    Me.Hide
End Sub

Private Sub lstFields_Click()
    If lstFields.ListIndex <> -1 Then
        txtData.Text = delay(lstFields.ListIndex)
    End If
    
    If lstFields.ListIndex <> 2 Then
        Label1.Caption = "milliseconds"
    Else
        Label1.Caption = "seconds"
    End If
    
    
    txtData.SetFocus
End Sub

Private Sub txtData_Change()
    If lstFields.ListCount <> 0 And lstFields.ListIndex > -1 Then
        delay(lstFields.ListIndex) = Val(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

