home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmAdd
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Add to Archive"
- ClientHeight = 4110
- ClientLeft = 1710
- ClientTop = 795
- ClientWidth = 4935
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4110
- ScaleWidth = 4935
- ShowInTaskbar = 0 'False
- Begin VB.Frame frFileSelect
- Caption = "File Select"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2895
- Left = 120
- TabIndex = 5
- Top = 0
- Width = 4695
- Begin VB.DriveListBox drvList
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- TabIndex = 8
- Top = 240
- Width = 4455
- End
- Begin VB.DirListBox dirAdd
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2115
- Left = 120
- TabIndex = 7
- Top = 675
- Width = 2295
- End
- Begin VB.FileListBox flbAdd
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2040
- Left = 2520
- MultiSelect = 2 'Extended
- TabIndex = 6
- Top = 675
- Width = 2055
- End
- End
- Begin VB.Frame frSearch
- Caption = "Search Pattern"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 680
- Left = 2520
- TabIndex = 3
- Top = 2880
- Width = 2295
- Begin VB.TextBox txtFiles
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- TabIndex = 4
- Text = "*.*"
- Top = 240
- Width = 2055
- End
- End
- Begin VB.CommandButton cmdCancel
- Caption = "&Cancel"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- TabIndex = 2
- Top = 3650
- Width = 1095
- End
- Begin VB.CommandButton cmdWild
- Caption = "Add with &Wildcard"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2520
- TabIndex = 1
- Top = 3650
- Width = 2295
- End
- Begin VB.CommandButton cmdAdd
- Caption = "&Add"
- Default = -1 'True
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 3650
- Width = 1095
- End
- Begin VB.Frame Frame1
- Caption = "Password"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 680
- Left = 120
- TabIndex = 9
- Top = 2880
- Width = 2295
- Begin VB.TextBox txtPass
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- TabIndex = 10
- Top = 240
- Width = 2055
- End
- End
- Attribute VB_Name = "frmAdd"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdAdd_Click()
- Dim Files As String
- For i = 0 To flbAdd.ListCount - 1
- If flbAdd.Selected(i) Then
- 'Don't add the "\" to the Root Drive path. i.e. "D:\" would look like "D:\\"
- If Len(flbAdd.Path) > 3 Then
- Files = flbAdd.Path & "\" & flbAdd.List(i) & "," & Files
- Else
- Files = flbAdd.Path & flbAdd.List(i) & "," & Files
- End If
- End If
- Next
- If Len(Files) > 1 Then
- Files = Left(Files, Len(Files) - 1)
- frmAZPCoDec.ActiveZipperPro1.SourceFile = Files
- frmAZPCoDec.ActiveZipperPro1.Password = txtPass.Text
- End If
- Me.Visible = False
- frmAZPCoDec.stat.Panels(1).Text = "Compressing selected files..."
- If UseZip = False Then
- If Files <> "" Then
- frmAZPCoDec.ActiveZipperPro1.Compress
- DisplayFile frmAZPCoDec.ActiveZipperPro1.Destination & frmAZPCoDec.ActiveZipperPro1.OutPutFile & ".az"
- End If
- Else
- If Files <> "" Then frmAZPCoDec.ActiveZipperPro1.ZipIt True, False, False, vbNullString
- DisplayZipContents frmAZPCoDec.ActiveZipperPro1.OutPutFile
- End If
- frmAZPCoDec.stat.Panels(1).Text = "No Task..."
- Unload Me
- End Sub
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdWild_Click()
- Dim Files As String
- For i = 0 To flbAdd.ListCount - 1
- 'Don't add the "\" to the Root Drive path. i.e. "D:\" would look like "D:\\"
- If Len(flbAdd.Path) > 3 Then
- Files = flbAdd.Path & "\" & flbAdd.List(i) & "," & Files
- Else
- Files = flbAdd.Path & flbAdd.List(i) & "," & Files
- End If
- Next
- If Len(Files) > 1 Then
- Files = Left(Files, Len(Files) - 1)
- frmAZPCoDec.ActiveZipperPro1.SourceFile = Files
- frmAZPCoDec.ActiveZipperPro1.Password = txtPass.Text
- End If
- Me.Visible = False
- frmAZPCoDec.stat.Panels(1).Text = "Compressing selected files..."
- If Files <> "" Then frmAZPCoDec.ActiveZipperPro1.Compress
- DisplayFile frmAZPCoDec.ActiveZipperPro1.Destination & frmAZPCoDec.ActiveZipperPro1.OutPutFile & ".az"
- frmAZPCoDec.stat.Panels(1).Text = "No Task..."
- Unload Me
- End Sub
- Private Sub dirAdd_Change()
- flbAdd.Path = dirAdd.Path
- End Sub
- Private Sub drvList_Change()
- dirAdd.Path = drvList.Drive
- End Sub
- Private Sub Form_Load()
- Me.Visible = True
- Me.Caption = "Add to Archive - " & frmAZPCoDec.ActiveZipperPro1.OutPutFile
- If UseZip = True Then
- Frame1.Visible = False
- cmdWild.Visible = False
- Else
- Frame1.Visible = True
- cmdWild.Visible = True
- End If
- End Sub
- Private Sub txtFiles_Change()
- flbAdd.Pattern = txtFiles.Text & "*"
- End Sub
-