home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmNew
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "New Archive"
- ClientHeight = 3735
- ClientLeft = 2715
- ClientTop = 960
- ClientWidth = 4095
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3735
- ScaleWidth = 4095
- ShowInTaskbar = 0 'False
- Begin VB.Frame frNew
- Caption = "New archive name:"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 3495
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 3855
- Begin VB.DirListBox dirNew
- Height = 2115
- Left = 120
- TabIndex = 7
- Top = 960
- Width = 2295
- End
- Begin VB.TextBox txtFileName
- Height = 285
- Left = 120
- TabIndex = 6
- Text = "NewArchive"
- Top = 240
- Width = 2295
- End
- Begin VB.CommandButton cmdNewDir
- Caption = "&Add Folder"
- Height = 285
- Left = 2520
- TabIndex = 5
- Top = 3120
- Width = 1095
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 120
- TabIndex = 4
- Text = "New Folder"
- Top = 3120
- Width = 2295
- End
- Begin VB.CommandButton cmdUse
- Caption = "&OK"
- Height = 285
- Left = 2520
- TabIndex = 3
- Top = 240
- Width = 1095
- End
- Begin VB.CommandButton cmdCancel
- Caption = "&Cancel"
- Height = 285
- Left = 2520
- TabIndex = 2
- Top = 600
- Width = 1095
- End
- Begin VB.DriveListBox driveNew
- Height = 315
- Left = 120
- TabIndex = 1
- Top = 600
- Width = 2295
- End
- Begin VB.Label lblHelp
- Caption = $"frmNew.frx":0000
- Height = 2175
- Left = 2520
- TabIndex = 8
- Top = 960
- Width = 1215
- WordWrap = -1 'True
- End
- End
- Attribute VB_Name = "frmNew"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdNewDir_Click()
- Dim NewPath As String
- 'Don't add the "\" to the Root Drive path. i.e. "D:\" would look like "D:\\"
- If Len(dirNew.Path) > 3 Then
- NewPath = dirNew.Path & "\" & Text1.Text
- Else
- NewPath = dirNew.Path & Text1.Text
- End If
- MkDir NewPath
- dirNew.Path = NewPath
- End Sub
- Private Sub cmdUse_Click()
- frmAZPCoDec.ActiveZipperPro1.OutPutFile = txtFileName.Text
- 'Don't add a "\" to a Drive itself "D:\" or it will look like, "D:\\"
- If Len(dirNew.Path) > 3 Then
- frmAZPCoDec.ActiveZipperPro1.Destination = dirNew.Path & "\"
- Else
- frmAZPCoDec.ActiveZipperPro1.Destination = dirNew.Path
- End If
- frmAZPCoDec.Caption = "AZP CoDec - " & frmAZPCoDec.ActiveZipperPro1.OutPutFile
- frmAdd.Show
- Unload Me
- End Sub
- Private Sub dirNew_KeyPress(KeyAscii As Integer)
- 'Dim KeyAscii As Integer
- If KeyAscii = 10 Or 13 Then
- dirNew.Path = dirNew.List(dirNew.ListIndex)
- End If
- End Sub
- Private Sub driveNew_Change()
- dirNew.Path = driveNew.Drive
- End Sub
- Private Sub Form_Load()
- If UseZip = True Then
- txtFileName.Text = "NewArchive.zip"
- End If
- End Sub
-