home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / azpzip / _setup.1 / frmNew.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-25  |  4.6 KB  |  149 lines

  1. VERSION 5.00
  2. Begin VB.Form frmNew 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "New Archive"
  5.    ClientHeight    =   3735
  6.    ClientLeft      =   2715
  7.    ClientTop       =   960
  8.    ClientWidth     =   4095
  9.    BeginProperty Font 
  10.       Name            =   "Tahoma"
  11.       Size            =   8.25
  12.       Charset         =   0
  13.       Weight          =   400
  14.       Underline       =   0   'False
  15.       Italic          =   0   'False
  16.       Strikethrough   =   0   'False
  17.    EndProperty
  18.    LinkTopic       =   "Form1"
  19.    MaxButton       =   0   'False
  20.    MinButton       =   0   'False
  21.    ScaleHeight     =   3735
  22.    ScaleWidth      =   4095
  23.    ShowInTaskbar   =   0   'False
  24.    Begin VB.Frame frNew 
  25.       Caption         =   "New archive name:"
  26.       BeginProperty Font 
  27.          Name            =   "Tahoma"
  28.          Size            =   8.25
  29.          Charset         =   0
  30.          Weight          =   700
  31.          Underline       =   0   'False
  32.          Italic          =   0   'False
  33.          Strikethrough   =   0   'False
  34.       EndProperty
  35.       Height          =   3495
  36.       Left            =   120
  37.       TabIndex        =   0
  38.       Top             =   120
  39.       Width           =   3855
  40.       Begin VB.DirListBox dirNew 
  41.          Height          =   2115
  42.          Left            =   120
  43.          TabIndex        =   7
  44.          Top             =   960
  45.          Width           =   2295
  46.       End
  47.       Begin VB.TextBox txtFileName 
  48.          Height          =   285
  49.          Left            =   120
  50.          TabIndex        =   6
  51.          Text            =   "NewArchive"
  52.          Top             =   240
  53.          Width           =   2295
  54.       End
  55.       Begin VB.CommandButton cmdNewDir 
  56.          Caption         =   "&Add Folder"
  57.          Height          =   285
  58.          Left            =   2520
  59.          TabIndex        =   5
  60.          Top             =   3120
  61.          Width           =   1095
  62.       End
  63.       Begin VB.TextBox Text1 
  64.          Height          =   285
  65.          Left            =   120
  66.          TabIndex        =   4
  67.          Text            =   "New Folder"
  68.          Top             =   3120
  69.          Width           =   2295
  70.       End
  71.       Begin VB.CommandButton cmdUse 
  72.          Caption         =   "&OK"
  73.          Height          =   285
  74.          Left            =   2520
  75.          TabIndex        =   3
  76.          Top             =   240
  77.          Width           =   1095
  78.       End
  79.       Begin VB.CommandButton cmdCancel 
  80.          Caption         =   "&Cancel"
  81.          Height          =   285
  82.          Left            =   2520
  83.          TabIndex        =   2
  84.          Top             =   600
  85.          Width           =   1095
  86.       End
  87.       Begin VB.DriveListBox driveNew 
  88.          Height          =   315
  89.          Left            =   120
  90.          TabIndex        =   1
  91.          Top             =   600
  92.          Width           =   2295
  93.       End
  94.       Begin VB.Label lblHelp 
  95.          Caption         =   $"frmNew.frx":0000
  96.          Height          =   2175
  97.          Left            =   2520
  98.          TabIndex        =   8
  99.          Top             =   960
  100.          Width           =   1215
  101.          WordWrap        =   -1  'True
  102.       End
  103.    End
  104. Attribute VB_Name = "frmNew"
  105. Attribute VB_GlobalNameSpace = False
  106. Attribute VB_Creatable = False
  107. Attribute VB_PredeclaredId = True
  108. Attribute VB_Exposed = False
  109. Private Sub cmdCancel_Click()
  110.     Unload Me
  111. End Sub
  112. Private Sub cmdNewDir_Click()
  113.     Dim NewPath As String
  114.     'Don't add the "\" to the Root Drive path.  i.e. "D:\" would look like "D:\\"
  115.     If Len(dirNew.Path) > 3 Then
  116.         NewPath = dirNew.Path & "\" & Text1.Text
  117.     Else
  118.         NewPath = dirNew.Path & Text1.Text
  119.     End If
  120.     MkDir NewPath
  121.     dirNew.Path = NewPath
  122. End Sub
  123. Private Sub cmdUse_Click()
  124.     frmAZPCoDec.ActiveZipperPro1.OutPutFile = txtFileName.Text
  125.     'Don't add a "\" to a Drive itself "D:\" or it will look like, "D:\\"
  126.     If Len(dirNew.Path) > 3 Then
  127.         frmAZPCoDec.ActiveZipperPro1.Destination = dirNew.Path & "\"
  128.     Else
  129.         frmAZPCoDec.ActiveZipperPro1.Destination = dirNew.Path
  130.     End If
  131.     frmAZPCoDec.Caption = "AZP CoDec - " & frmAZPCoDec.ActiveZipperPro1.OutPutFile
  132.     frmAdd.Show
  133.     Unload Me
  134. End Sub
  135. Private Sub dirNew_KeyPress(KeyAscii As Integer)
  136.     'Dim KeyAscii As Integer
  137.     If KeyAscii = 10 Or 13 Then
  138.         dirNew.Path = dirNew.List(dirNew.ListIndex)
  139.     End If
  140. End Sub
  141. Private Sub driveNew_Change()
  142.     dirNew.Path = driveNew.Drive
  143. End Sub
  144. Private Sub Form_Load()
  145. If UseZip = True Then
  146. txtFileName.Text = "NewArchive.zip"
  147. End If
  148. End Sub
  149.