home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{DB797681-40E0-11D2-9BD5-0060082AE372}#4.1#0"; "XceedZip.dll"
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
- Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Begin VB.Form frmMain
- BorderStyle = 1 'Fixed Single
- Caption = "Getting Started Sample Application (Xceed Zip Compression Library v4.0)"
- ClientHeight = 6405
- ClientLeft = 150
- ClientTop = 435
- ClientWidth = 9720
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 6405
- ScaleWidth = 9720
- StartUpPosition = 3 'Windows Default
- Begin VB.PictureBox picHint
- Appearance = 0 'Flat
- BackColor = &H80000018&
- ForeColor = &H80000008&
- Height = 1815
- Left = 5400
- ScaleHeight = 1785
- ScaleWidth = 4065
- TabIndex = 73
- Top = 1080
- Visible = 0 'False
- Width = 4095
- Begin VB.Label lblHint
- BackStyle = 0 'Transparent
- ForeColor = &H80000017&
- Height = 1935
- Left = 0
- TabIndex = 74
- Top = 0
- Width = 4095
- End
- End
- Begin MSComDlg.CommonDialog dlgSelect
- Left = 9240
- Top = 600
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin MSComctlLib.ProgressBar barGlobal
- Height = 300
- Left = 5400
- TabIndex = 6
- Top = 6060
- Width = 4080
- _ExtentX = 7197
- _ExtentY = 529
- _Version = 393216
- Appearance = 1
- End
- Begin MSComctlLib.ProgressBar barFile
- Height = 300
- Left = 600
- TabIndex = 5
- Top = 6060
- Width = 4080
- _ExtentX = 7197
- _ExtentY = 529
- _Version = 393216
- Appearance = 1
- End
- Begin MSComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 390
- Left = 0
- TabIndex = 4
- Top = 6015
- Width = 9720
- _ExtentX = 17145
- _ExtentY = 688
- _Version = 393216
- BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
- NumPanels = 2
- BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Object.Width = 8414
- MinWidth = 8414
- Text = "File:"
- TextSave = "File:"
- EndProperty
- BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Object.Width = 8414
- MinWidth = 8414
- Text = "Global:"
- TextSave = "Global:"
- EndProperty
- EndProperty
- End
- Begin TabDlg.SSTab tabExamples
- Height = 5175
- Left = 120
- TabIndex = 1
- Top = 720
- Width = 5415
- _ExtentX = 9551
- _ExtentY = 9128
- _Version = 393216
- Style = 1
- Tabs = 5
- Tab = 1
- TabsPerRow = 5
- TabHeight = 520
- TabCaption(0) = "PreviewFiles"
- TabPicture(0) = "frmmain.frx":0000
- Tab(0).ControlEnabled= 0 'False
- Tab(0).Control(0)= "lstPExcludedFileAttributes"
- Tab(0).Control(0).Enabled= 0 'False
- Tab(0).Control(1)= "lstPRequiredFileAttributes"
- Tab(0).Control(1).Enabled= 0 'False
- Tab(0).Control(2)= "btPreview"
- Tab(0).Control(2).Enabled= 0 'False
- Tab(0).Control(3)= "chkPProcessSubfolders"
- Tab(0).Control(3).Enabled= 0 'False
- Tab(0).Control(4)= "edtPFilesToExclude"
- Tab(0).Control(4).Enabled= 0 'False
- Tab(0).Control(5)= "edtPFilesToProcess"
- Tab(0).Control(5).Enabled= 0 'False
- Tab(0).Control(6)= "lblExcludedAttribs"
- Tab(0).Control(6).Enabled= 0 'False
- Tab(0).Control(7)= "lblRequiredFileAttribs"
- Tab(0).Control(7).Enabled= 0 'False
- Tab(0).Control(8)= "lblFilesToExclude"
- Tab(0).Control(8).Enabled= 0 'False
- Tab(0).Control(9)= "lblPreviewFilesToProcess"
- Tab(0).Control(9).Enabled= 0 'False
- Tab(0).Control(10)= "lblPreviewFiles"
- Tab(0).Control(10).Enabled= 0 'False
- Tab(0).ControlCount= 11
- TabCaption(1) = "Zip"
- TabPicture(1) = "frmmain.frx":001C
- Tab(1).ControlEnabled= -1 'True
- Tab(1).Control(0)= "lblZip"
- Tab(1).Control(0).Enabled= 0 'False
- Tab(1).Control(1)= "lblZipFilename"
- Tab(1).Control(1).Enabled= 0 'False
- Tab(1).Control(2)= "lblBasePath"
- Tab(1).Control(2).Enabled= 0 'False
- Tab(1).Control(3)= "lblZipFilesToProcess"
- Tab(1).Control(3).Enabled= 0 'False
- Tab(1).Control(4)= "lblZipTempFolder"
- Tab(1).Control(4).Enabled= 0 'False
- Tab(1).Control(5)= "Label2"
- Tab(1).Control(5).Enabled= 0 'False
- Tab(1).Control(6)= "edtZZipFilename"
- Tab(1).Control(6).Enabled= 0 'False
- Tab(1).Control(7)= "edtZBasePath"
- Tab(1).Control(7).Enabled= 0 'False
- Tab(1).Control(8)= "edtZFilesToProcess"
- Tab(1).Control(8).Enabled= 0 'False
- Tab(1).Control(9)= "chkZPreservePaths"
- Tab(1).Control(9).Enabled= 0 'False
- Tab(1).Control(10)= "chkZProcessSubfolders"
- Tab(1).Control(10).Enabled= 0 'False
- Tab(1).Control(11)= "chkZUseTempFile"
- Tab(1).Control(11).Enabled= 0 'False
- Tab(1).Control(12)= "edtZTempFolder"
- Tab(1).Control(12).Enabled= 0 'False
- Tab(1).Control(13)= "btZip"
- Tab(1).Control(13).Enabled= 0 'False
- Tab(1).Control(14)= "edtZFilesToExclude"
- Tab(1).Control(14).Enabled= 0 'False
- Tab(1).ControlCount= 15
- TabCaption(2) = "ListZipContents"
- TabPicture(2) = "frmmain.frx":0038
- Tab(2).ControlEnabled= 0 'False
- Tab(2).Control(0)= "btList"
- Tab(2).Control(0).Enabled= 0 'False
- Tab(2).Control(1)= "edtLMaxSizeToProcess"
- Tab(2).Control(1).Enabled= 0 'False
- Tab(2).Control(2)= "edtLMinSizeToProcess"
- Tab(2).Control(2).Enabled= 0 'False
- Tab(2).Control(3)= "edtLMinDateToProcess"
- Tab(2).Control(3).Enabled= 0 'False
- Tab(2).Control(4)= "edtLZipFilename"
- Tab(2).Control(4).Enabled= 0 'False
- Tab(2).Control(5)= "edtLMaxDateToProcess"
- Tab(2).Control(5).Enabled= 0 'False
- Tab(2).Control(6)= "lblListZipMaxSizeToProcess"
- Tab(2).Control(6).Enabled= 0 'False
- Tab(2).Control(7)= "lblListZipMinSizeToProcess"
- Tab(2).Control(7).Enabled= 0 'False
- Tab(2).Control(8)= "lblListZipMaxDateToProcess"
- Tab(2).Control(8).Enabled= 0 'False
- Tab(2).Control(9)= "lblListMinDateToProcess"
- Tab(2).Control(9).Enabled= 0 'False
- Tab(2).Control(10)= "lblListZipZipFilename"
- Tab(2).Control(10).Enabled= 0 'False
- Tab(2).Control(11)= "lblListZipContents3"
- Tab(2).Control(11).Enabled= 0 'False
- Tab(2).Control(12)= "lblListZipContents2"
- Tab(2).Control(12).Enabled= 0 'False
- Tab(2).Control(13)= "lblListZipContents"
- Tab(2).Control(13).Enabled= 0 'False
- Tab(2).ControlCount= 14
- TabCaption(3) = "Unzip"
- TabPicture(3) = "frmmain.frx":0054
- Tab(3).ControlEnabled= 0 'False
- Tab(3).Control(0)= "txtUFilesToExclude"
- Tab(3).Control(0).Enabled= 0 'False
- Tab(3).Control(1)= "btUnzip"
- Tab(3).Control(1).Enabled= 0 'False
- Tab(3).Control(2)= "chkUSkipIfOlderVersion"
- Tab(3).Control(2).Enabled= 0 'False
- Tab(3).Control(3)= "chkUSkipIfOlderDate"
- Tab(3).Control(3).Enabled= 0 'False
- Tab(3).Control(4)= "chkUSkipIfNotExisting"
- Tab(3).Control(4).Enabled= 0 'False
- Tab(3).Control(5)= "chkUSkipIfExisting"
- Tab(3).Control(5).Enabled= 0 'False
- Tab(3).Control(6)= "edtUUnzipToFolder"
- Tab(3).Control(6).Enabled= 0 'False
- Tab(3).Control(7)= "edtUZipFilename"
- Tab(3).Control(7).Enabled= 0 'False
- Tab(3).Control(8)= "edtUFilesToProcess"
- Tab(3).Control(8).Enabled= 0 'False
- Tab(3).Control(9)= "Label3"
- Tab(3).Control(9).Enabled= 0 'False
- Tab(3).Control(10)= "lblUnzipUnzipToFolder"
- Tab(3).Control(10).Enabled= 0 'False
- Tab(3).Control(11)= "lblUnzipZipFilename"
- Tab(3).Control(11).Enabled= 0 'False
- Tab(3).Control(12)= "lblUnzipFilesToProcess"
- Tab(3).Control(12).Enabled= 0 'False
- Tab(3).Control(13)= "Label1"
- Tab(3).Control(13).Enabled= 0 'False
- Tab(3).ControlCount= 14
- TabCaption(4) = "Sfx"
- TabPicture(4) = "frmmain.frx":0070
- Tab(4).ControlEnabled= 0 'False
- Tab(4).Control(0)= "btSfx"
- Tab(4).Control(0).Enabled= 0 'False
- Tab(4).Control(1)= "edtSIntro"
- Tab(4).Control(1).Enabled= 0 'False
- Tab(4).Control(2)= "edtSTitle"
- Tab(4).Control(2).Enabled= 0 'False
- Tab(4).Control(3)= "edtSFilesToProcess"
- Tab(4).Control(3).Enabled= 0 'False
- Tab(4).Control(4)= "edtSZipFilename"
- Tab(4).Control(4).Enabled= 0 'False
- Tab(4).Control(5)= "edtSBinaryModule"
- Tab(4).Control(5).Enabled= 0 'False
- Tab(4).Control(6)= "lSIntroMessage"
- Tab(4).Control(6).Enabled= 0 'False
- Tab(4).Control(7)= "lblSTitle"
- Tab(4).Control(7).Enabled= 0 'False
- Tab(4).Control(8)= "lblSFilesToProcess"
- Tab(4).Control(8).Enabled= 0 'False
- Tab(4).Control(9)= "lblSZipFileName"
- Tab(4).Control(9).Enabled= 0 'False
- Tab(4).Control(10)= "lblBinaryModule"
- Tab(4).Control(10).Enabled= 0 'False
- Tab(4).Control(11)= "lblSfx"
- Tab(4).Control(11).Enabled= 0 'False
- Tab(4).ControlCount= 12
- Begin VB.TextBox txtUFilesToExclude
- Height = 495
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 55
- Top = 3840
- Width = 4935
- End
- Begin VB.TextBox edtZFilesToExclude
- Height = 495
- Left = 240
- MultiLine = -1 'True
- TabIndex = 26
- Top = 3480
- Width = 4935
- End
- Begin VB.CommandButton btSfx
- Caption = "&Zip Sfx!"
- Height = 375
- Left = -70920
- TabIndex = 72
- Top = 4560
- Width = 1095
- End
- Begin VB.TextBox edtSIntro
- Height = 525
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 71
- Top = 4440
- Width = 3615
- End
- Begin VB.TextBox edtSTitle
- Height = 285
- Left = -74760
- TabIndex = 69
- Top = 3840
- Width = 4935
- End
- Begin VB.TextBox edtSFilesToProcess
- Height = 495
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 65
- Top = 2400
- Width = 4935
- End
- Begin VB.TextBox edtSZipFilename
- Height = 285
- Left = -74760
- TabIndex = 63
- Top = 1800
- Width = 4935
- End
- Begin VB.TextBox edtSBinaryModule
- Height = 285
- Left = -74760
- TabIndex = 67
- Top = 3240
- Width = 4935
- End
- Begin VB.ListBox lstPExcludedFileAttributes
- Height = 960
- ItemData = "frmmain.frx":008C
- Left = -72960
- List = "frmmain.frx":008E
- Style = 1 'Checkbox
- TabIndex = 16
- Top = 3960
- Width = 1575
- End
- Begin VB.ListBox lstPRequiredFileAttributes
- Height = 960
- Left = -74760
- Style = 1 'Checkbox
- TabIndex = 14
- Top = 3960
- Width = 1575
- End
- Begin VB.CommandButton btUnzip
- Caption = "Unzip!"
- Height = 375
- Left = -70920
- TabIndex = 60
- Top = 4560
- Width = 1095
- End
- Begin VB.CheckBox chkUSkipIfOlderVersion
- Caption = "SkipIfOlder&Version"
- Height = 255
- Left = -72840
- TabIndex = 59
- Top = 4680
- Width = 1695
- End
- Begin VB.CheckBox chkUSkipIfOlderDate
- Caption = "SkipIfOlder&Date"
- Height = 255
- Left = -72840
- TabIndex = 58
- Top = 4440
- Width = 1455
- End
- Begin VB.CheckBox chkUSkipIfNotExisting
- Caption = "SkipIfN&otExisting"
- Height = 195
- Left = -74760
- TabIndex = 57
- Top = 4680
- Width = 1575
- End
- Begin VB.CheckBox chkUSkipIfExisting
- Caption = "SkipIfE&xisting"
- Height = 195
- Left = -74760
- TabIndex = 56
- Top = 4440
- Width = 1335
- End
- Begin VB.TextBox edtUUnzipToFolder
- Height = 285
- Left = -74760
- TabIndex = 51
- Top = 2400
- Width = 4935
- End
- Begin VB.TextBox edtUZipFilename
- Height = 285
- Left = -74760
- TabIndex = 49
- Top = 1800
- Width = 4935
- End
- Begin VB.TextBox edtUFilesToProcess
- Height = 495
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 53
- Top = 3000
- Width = 4935
- End
- Begin VB.CommandButton btList
- Caption = "List!"
- Height = 375
- Left = -70920
- TabIndex = 46
- Top = 4560
- Width = 1095
- End
- Begin VB.TextBox edtLMaxSizeToProcess
- Height = 285
- Left = -73080
- TabIndex = 45
- Top = 4440
- Width = 1455
- End
- Begin VB.TextBox edtLMinSizeToProcess
- Height = 285
- Left = -73080
- TabIndex = 43
- Top = 3840
- Width = 1455
- End
- Begin MSMask.MaskEdBox edtLMinDateToProcess
- Height = 285
- Left = -74760
- TabIndex = 39
- Top = 3840
- Width = 1455
- _ExtentX = 2566
- _ExtentY = 503
- _Version = 393216
- ClipMode = 1
- MaxLength = 10
- Format = "dd/mm/yyyy"
- Mask = "##/##/####"
- PromptChar = "_"
- End
- Begin VB.TextBox edtLZipFilename
- Height = 285
- Left = -74760
- TabIndex = 37
- Top = 3240
- Width = 4935
- End
- Begin VB.CommandButton btZip
- Caption = "Zip!"
- Height = 375
- Left = 4080
- TabIndex = 32
- Top = 4560
- Width = 1095
- End
- Begin VB.TextBox edtZTempFolder
- Height = 285
- Left = 1440
- TabIndex = 31
- Top = 4680
- Width = 2415
- End
- Begin VB.CheckBox chkZUseTempFile
- Caption = "UseTempFile"
- Height = 255
- Left = 240
- TabIndex = 29
- Top = 4320
- Width = 1335
- End
- Begin VB.CheckBox chkZProcessSubfolders
- Caption = "ProcessSubfolders"
- Height = 255
- Left = 240
- TabIndex = 27
- Top = 4080
- Width = 1695
- End
- Begin VB.CheckBox chkZPreservePaths
- Caption = "PreservePaths"
- Height = 255
- Left = 2400
- TabIndex = 28
- Top = 4080
- Width = 1455
- End
- Begin VB.TextBox edtZFilesToProcess
- Height = 495
- Left = 240
- MultiLine = -1 'True
- TabIndex = 24
- Top = 2640
- Width = 4935
- End
- Begin VB.TextBox edtZBasePath
- Height = 285
- Left = 240
- TabIndex = 22
- Top = 2040
- Width = 4935
- End
- Begin VB.TextBox edtZZipFilename
- Height = 285
- Left = 240
- TabIndex = 20
- Top = 1440
- Width = 4935
- End
- Begin VB.CommandButton btPreview
- Caption = "Preview!"
- Height = 375
- Left = -70920
- TabIndex = 17
- Top = 4560
- Width = 1095
- End
- Begin VB.CheckBox chkPProcessSubfolders
- Caption = "ProcessSubFolders"
- Height = 255
- Left = -74760
- TabIndex = 12
- Top = 3360
- Width = 1695
- End
- Begin VB.TextBox edtPFilesToExclude
- Height = 495
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 11
- Top = 2760
- Width = 4935
- End
- Begin VB.TextBox edtPFilesToProcess
- Height = 495
- Left = -74760
- MultiLine = -1 'True
- TabIndex = 9
- Top = 1920
- Width = 4935
- End
- Begin MSMask.MaskEdBox edtLMaxDateToProcess
- Height = 285
- Left = -74760
- TabIndex = 41
- Top = 4440
- Width = 1455
- _ExtentX = 2566
- _ExtentY = 503
- _Version = 393216
- MaxLength = 10
- Format = "dd/mm/yyyy"
- Mask = "##/##/####"
- PromptChar = "_"
- End
- Begin VB.Label Label3
- Caption = "FilesTo&Exclude:"
- Height = 255
- Left = -74760
- TabIndex = 54
- Top = 3600
- Width = 1695
- End
- Begin VB.Label Label2
- Caption = "FilesToExclude:"
- Height = 255
- Left = 240
- TabIndex = 25
- Top = 3240
- Width = 1695
- End
- Begin VB.Label lSIntroMessage
- Caption = "SfxMessages ( xsm&Intro ):"
- Height = 255
- Left = -74760
- TabIndex = 70
- Top = 4200
- Width = 1815
- End
- Begin VB.Label lblSTitle
- Caption = "SfxStrings ( xss&Title ):"
- Height = 255
- Left = -74760
- TabIndex = 68
- Top = 3600
- Width = 1575
- End
- Begin VB.Label lblSFilesToProcess
- Caption = "FilesTo&Process:"
- Height = 255
- Left = -74760
- TabIndex = 64
- Top = 2160
- Width = 1215
- End
- Begin VB.Label lblSZipFileName
- Caption = "ZipFile&name:"
- Height = 255
- Left = -74760
- TabIndex = 62
- Top = 1560
- Width = 975
- End
- Begin VB.Label lblBinaryModule
- Caption = "Sfx&BinaryModule:"
- Height = 255
- Left = -74760
- TabIndex = 66
- Top = 3000
- Width = 1335
- End
- Begin VB.Label lblSfx
- Caption = $"frmmain.frx":0090
- Height = 975
- Left = -74760
- TabIndex = 61
- Top = 480
- Width = 4935
- End
- Begin VB.Label lblUnzipUnzipToFolder
- Caption = "UnzipTo&Folder:"
- Height = 255
- Left = -74760
- TabIndex = 50
- Top = 2160
- Width = 1335
- End
- Begin VB.Label lblUnzipZipFilename
- Caption = "ZipFile&name:"
- Height = 255
- Left = -74760
- TabIndex = 48
- Top = 1560
- Width = 1335
- End
- Begin VB.Label lblUnzipFilesToProcess
- Caption = "FilesTo&Process:"
- Height = 255
- Left = -74760
- TabIndex = 52
- Top = 2760
- Width = 1695
- End
- Begin VB.Label Label1
- Caption = $"frmmain.frx":01F6
- Height = 975
- Left = -74760
- TabIndex = 47
- Top = 480
- Width = 4935
- End
- Begin VB.Label lblListZipMaxSizeToProcess
- Caption = "MaxSizeToProcess"
- Height = 255
- Left = -73080
- TabIndex = 44
- Top = 4200
- Width = 1575
- End
- Begin VB.Label lblListZipMinSizeToProcess
- Caption = "MinSizeToProcess:"
- Height = 255
- Left = -73080
- TabIndex = 42
- Top = 3600
- Width = 1695
- End
- Begin VB.Label lblListZipMaxDateToProcess
- Caption = "MaxDateToProcess:"
- Height = 255
- Left = -74760
- TabIndex = 40
- Top = 4200
- Width = 1575
- End
- Begin VB.Label lblListMinDateToProcess
- Caption = "MinDateToProcess:"
- Height = 255
- Left = -74760
- TabIndex = 38
- Top = 3600
- Width = 1575
- End
- Begin VB.Label lblListZipZipFilename
- Caption = "ZipFilename:"
- Height = 255
- Left = -74760
- TabIndex = 36
- Top = 3000
- Width = 1335
- End
- Begin VB.Label lblListZipContents3
- Caption = $"frmmain.frx":0348
- Height = 855
- Left = -74760
- TabIndex = 35
- Top = 2040
- Width = 4935
- End
- Begin VB.Label lblListZipContents2
- Caption = $"frmmain.frx":0430
- Height = 855
- Left = -74760
- TabIndex = 34
- Top = 1200
- Width = 4935
- End
- Begin VB.Label lblListZipContents
- Caption = $"frmmain.frx":050C
- Height = 615
- Left = -74760
- TabIndex = 33
- Top = 480
- Width = 4935
- End
- Begin VB.Label lblZipTempFolder
- Caption = "TempFolder:"
- Height = 255
- Left = 480
- TabIndex = 30
- Top = 4710
- Width = 975
- End
- Begin VB.Label lblZipFilesToProcess
- Caption = "FilesToProcess:"
- Height = 255
- Left = 240
- TabIndex = 23
- Top = 2400
- Width = 1335
- End
- Begin VB.Label lblBasePath
- Caption = "BasePath:"
- Height = 255
- Left = 240
- TabIndex = 21
- Top = 1800
- Width = 1335
- End
- Begin VB.Label lblZipFilename
- Caption = "ZipFilename:"
- Height = 255
- Left = 240
- TabIndex = 19
- Top = 1200
- Width = 1095
- End
- Begin VB.Label lblZip
- Caption = $"frmmain.frx":05CA
- Height = 615
- Left = 240
- TabIndex = 18
- Top = 480
- Width = 4935
- End
- Begin VB.Label lblExcludedAttribs
- Caption = "ExcludedFileAttributes:"
- Height = 255
- Left = -72960
- TabIndex = 15
- Top = 3720
- Width = 1695
- End
- Begin VB.Label lblRequiredFileAttribs
- Caption = "RequiredFileAttributes:"
- Height = 255
- Left = -74760
- TabIndex = 13
- Top = 3720
- Width = 1695
- End
- Begin VB.Label lblFilesToExclude
- Caption = "FilesToExclude:"
- Height = 255
- Left = -74760
- TabIndex = 10
- Top = 2520
- Width = 1695
- End
- Begin VB.Label lblPreviewFilesToProcess
- Caption = "FilesToProcess:"
- Height = 255
- Left = -74760
- TabIndex = 8
- Top = 1680
- Width = 1695
- End
- Begin VB.Label lblPreviewFiles
- Caption = $"frmmain.frx":069A
- Height = 1095
- Left = -74760
- TabIndex = 7
- Top = 480
- Width = 4935
- End
- End
- Begin MSComctlLib.ListView lstResults
- Height = 4875
- Left = 5640
- TabIndex = 3
- Top = 1035
- Width = 3975
- _ExtentX = 7011
- _ExtentY = 8599
- View = 3
- MultiSelect = -1 'True
- LabelWrap = -1 'True
- HideSelection = -1 'True
- HideColumnHeaders= -1 'True
- _Version = 393217
- ForeColor = -2147483640
- BackColor = -2147483643
- BorderStyle = 1
- Appearance = 1
- NumItems = 1
- BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
- Object.Width = 17639
- EndProperty
- End
- Begin VB.Label lblResults
- Caption = "Triggered events:"
- Height = 255
- Left = 5640
- TabIndex = 2
- Top = 720
- Width = 2415
- End
- Begin XceedZipLibCtl.XceedZip xZip
- Left = 9240
- Top = 120
- BasePath = ""
- CompressionLevel= 6
- EncryptionPassword= ""
- RequiredFileAttributes= 0
- ExcludedFileAttributes= 24
- FilesToProcess = ""
- FilesToExclude = ""
- MinDateToProcess= 2
- MaxDateToProcess= 2958465
- MinSizeToProcess= 0
- MaxSizeToProcess= 0
- SplitSize = 0
- PreservePaths = -1 'True
- ProcessSubfolders= -1 'True
- SkipIfExisting = 0 'False
- SkipIfNotExisting= 0 'False
- SkipIfOlderDate = 0 'False
- SkipIfOlderVersion= 0 'False
- TempFolder = ""
- UseTempFile = -1 'True
- UnzipToFolder = ""
- ZipFilename = ""
- SpanMultipleDisks= 2
- ExtraHeaders = 10
- ZipOpenedFiles = 0 'False
- BackgroundProcessing= 0 'False
- SfxBinrayModule = ""
- SfxDefaultPassword= ""
- SfxDefaultUnzipToFolder= ""
- SfxExistingFileBehavior= 0
- SfxReadmeFile = ""
- SfxExecuteAfter = ""
- SfxInstallMode = 0 'False
- SfxProgramGroup = ""
- SfxProgramGroupItems= ""
- SfxExtensionsToAssociate= ""
- SfxIconFilename = ""
- End
- Begin VB.Label txtHeader
- Caption = $"frmmain.frx":07DF
- Height = 540
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 8655
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '==================================================================
- ' Description: Getting Started Sample Application
- ' Copyright:
- Copyright 1995-1999 Xceed Software Inc.
- ' All Rights Reserved.
- '==================================================================
- Option Explicit
- '==================================================================
- ' Sample code
- '==================================================================
- '------------------------------------------------------------------------------------
- 'The preview button is pressed. xZip's main properties are first reset to the desired
- 'default values, then the values of the form's controls are copied to xZip's
- 'properties and the PreviewFiles method is called. The PreviewFiles method will list
- 'all the files (through the PreviewingFile event) that will be processed by the
- 'Zip method when it is called with these same property settings.
- '------------------------------------------------------------------------------------
- Private Sub btPreview_Click()
- Dim xErr As xcdError
- ' Reset properties, just to make sure other tabs do not interfere with this example
- Call SetDefaultProperties(xZip)
- xZip.FilesToProcess = edtPFilesToProcess.Text
- xZip.FilesToExclude = edtPFilesToExclude.Text
- xZip.ProcessSubfolders = chkPProcessSubfolders.Value
- xZip.RequiredFileAttributes = GetSelectedAttributes(lstPRequiredFileAttributes)
- xZip.ExcludedFileAttributes = GetSelectedAttributes(lstPExcludedFileAttributes)
- lstResults.ListItems.Clear
- xErr = xZip.PreviewFiles
- End Sub
- '------------------------------------------------------------------------------------
- 'The zip button is pressed. xZip's main properties are first reset to the desired
- 'default values, then the values of the form's controls are copied to xZip's
- 'properties and the Zip method is called. The files that match the criteria specified
- 'by the forms properties will be compressed and stored in the zip file specified
- 'by the ZipFileName property.
- '------------------------------------------------------------------------------------
- Private Sub btZip_Click()
- Dim xErr As xcdError
- ' Reset properties, just to make sure other tabs do not interfere with this example
- Call SetDefaultProperties(xZip)
- xZip.ZipFilename = edtZZipFilename.Text
- xZip.BasePath = edtZBasePath.Text
- xZip.FilesToProcess = edtZFilesToProcess.Text
- xZip.FilesToExclude = edtZFilesToExclude.Text
- xZip.PreservePaths = (chkZPreservePaths.Value = vbChecked)
- xZip.UseTempFile = (chkZUseTempFile.Value = vbChecked)
- xZip.TempFolder = edtZTempFolder.Text
- lstResults.ListItems.Clear
- xErr = xZip.Zip
- End Sub
- '------------------------------------------------------------------------------------
- 'The list button is pressed. xZip's main properties are first reset to the desired
- 'default values, then the values of the form's controls are copied to xZip's
- 'properties and the listing begins. The ListingFile event provides each file's info.
- '------------------------------------------------------------------------------------
- Private Sub btList_Click()
- Dim xErr As xcdError
-
- ' Reset properties, just to make sure other tabs do not interfere with this example
- Call SetDefaultProperties(xZip)
- xZip.ZipFilename = edtLZipFilename.Text
- xZip.MinDateToProcess = CDate(edtLMinDateToProcess.Text)
- xZip.MaxDateToProcess = CDate(edtLMaxDateToProcess.Text)
- xZip.MinSizeToProcess = edtLMinSizeToProcess.Text
- xZip.MaxSizeToProcess = edtLMaxSizeToProcess.Text
- lstResults.ListItems.Clear
- xErr = xZip.ListZipContents
- End Sub
- '------------------------------------------------------------------------------------
- 'The unzip button is pressed. xZip's main properties are first reset to the desired
- 'default values, then the values of the form's controls are copied to xZip's
- 'properties and the Unzip method is called. The files that match the criteria
- 'specified by the forms properties will be will be unzipped to the folder specified
- 'by the UnzipToFolder property.
- '------------------------------------------------------------------------------------
- Private Sub btUnzip_Click()
- Dim xErr As xcdError
- ' Reset properties, just to make sure other tabs do not interfere with this example
- Call SetDefaultProperties(xZip)
-
- xZip.ZipFilename = edtUZipFilename.Text
- xZip.UnzipToFolder = edtUUnzipToFolder.Text
- xZip.FilesToProcess = edtUFilesToProcess.Text
- xZip.SkipIfExisting = chkUSkipIfExisting.Value
- xZip.SkipIfNotExisting = chkUSkipIfNotExisting.Value
- xZip.SkipIfOlderDate = chkUSkipIfOlderDate.Value
- xZip.SkipIfOlderVersion = chkUSkipIfOlderVersion.Value
- lstResults.ListItems.Clear
- xErr = xZip.Unzip
- End Sub
- '------------------------------------------------------------------------------------
- 'The Create Sfx button is pressed. xZip's main properties are first reset to the
- 'desired default values, then the values of the form's controls are copied to xZip's
- 'properties and the Zip method is called. If a value is encountered in the
- 'SfxBinaryModule property, XceedZip will create a self-extracting zip file with an
- 'integrated self-extracting zip file module specified by the SfxBinaryModule property.
- '------------------------------------------------------------------------------------
- Private Sub btSfx_Click()
- Dim xErr As xcdError
- ' Reset properties, just to make sure other tabs do not interfere with this example
- Call SetDefaultProperties(xZip)
- xZip.SfxBinaryModule = edtSBinaryModule.Text
- xZip.ZipFilename = edtSZipFilename.Text
- xZip.FilesToProcess = edtSFilesToProcess.Text
- xZip.SfxStrings(xssTitle) = edtSTitle.Text
- xZip.SfxMessages(xsmIntro) = edtSIntro.Text
- lstResults.ListItems.Clear
- xErr = xZip.Zip
- End Sub
- '==================================================================
- ' Hints and messages
- '==================================================================
- '------------------------------------------------------------------------------------
- 'Adds a line in the lstResults Textbox
- '------------------------------------------------------------------------------------
- Public Sub AddMessage(sToAdd As String)
- Dim lList As ListItem
- Set lList = lstResults.ListItems.Add(, , sToAdd)
- End Sub
- '------------------------------------------------------------------------------------
- ' Make the popup hint a little bit smarter!
- '------------------------------------------------------------------------------------
- Private Sub ShowHint(sHint As String, CurrentControl As Control)
- lblHint.Caption = sHint
- picHint.Top = tabExamples.Top + CurrentControl.Top - 1000
- picHint.Visible = True
- End Sub
- Private Sub lblHint_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- picHint.Visible = False
- End Sub
- Private Sub lstResults_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- picHint.Visible = False
- End Sub
- Private Sub tabExamples_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- picHint.Visible = False
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- picHint.Visible = False
- End Sub
- Private Sub lblPreviewFiles_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- picHint.Visible = False
- End Sub
- '------------------------------------------------------------------------------------
- ' Display property explanation when mouse moves over fields
- '------------------------------------------------------------------------------------
- Private Sub btList_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cListZipContentsHint, btList)
- End Sub
- Private Sub btPreview_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cPreviewFilesHint, btPreview)
- End Sub
- Private Sub btUnzip_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cUnzipHint, btUnzip)
- End Sub
- Private Sub btZip_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipHint, btZip)
- End Sub
- Private Sub chkPProcessSubfolders_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cProcessSubfolderHint, chkPProcessSubfolders)
- End Sub
- Private Sub btSfx_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipSfxHint, btSfx)
- End Sub
- Private Sub chkUSkipIfExisting_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSkipIfExistingHint, chkUSkipIfExisting)
- End Sub
- Private Sub chkUSkipIfNotExisting_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSkipIfNotExistingHint, chkUSkipIfNotExisting)
- End Sub
- Private Sub chkUSkipIfOlderDate_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSkipIfOlderDateHint, chkUSkipIfOlderDate)
- End Sub
- Private Sub chkUSkipIfOlderVersion_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSkipIfOlderVersionHint, chkUSkipIfOlderVersion)
- End Sub
- Private Sub chkZPreservePaths_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cPreservePathsHint, chkZPreservePaths)
- End Sub
- Private Sub txtUFilesToExclude_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToExcludeHint, edtPFilesToExclude)
- End Sub
- Private Sub chkZProcessSubfolders_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cProcessSubfolderHint, chkZProcessSubfolders)
- End Sub
- Private Sub chkZUseTempFile_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cUseTempFileHint, chkZUseTempFile)
- End Sub
- Private Sub edtLMaxSizeToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cMaxSizeToProcessHint, edtLMaxSizeToProcess)
- End Sub
- Private Sub edtLMinSizeToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cMinSizeToProcessHint, edtLMinSizeToProcess)
- End Sub
- Private Sub edtLZipFilename_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipFilenameHint, edtLZipFilename)
- End Sub
- Private Sub edtPFilesToExclude_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToExcludeHint, edtPFilesToExclude)
- End Sub
- Private Sub edtPFilesToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToProcessHint, edtPFilesToProcess)
- End Sub
- Private Sub edtSIntro_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSfxMessagesHint, edtSIntro)
- End Sub
- Private Sub edtSBinaryModule_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSfxBinaryModuleHint, edtSBinaryModule)
- End Sub
- Private Sub edtSFilesToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToProcessHint, edtSFilesToProcess)
- End Sub
- Private Sub edtSIntroMessage_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSfxStringsHint, edtSIntro)
- End Sub
- Private Sub edtSTitle_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cSfxStringsHint, edtSTitle)
- End Sub
- Private Sub edtSZipFileName_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipFilenameSfxHint, edtSZipFilename)
- End Sub
- Private Sub edtUFilesToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToProcessHint, edtUFilesToProcess)
- End Sub
- Private Sub edtUUnzipToFolder_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cUnzipToFolderHint, edtUUnzipToFolder)
- End Sub
- Private Sub edtUZipFilename_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipFilenameHint, edtUZipFilename)
- End Sub
- Private Sub edtZBasePath_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cBasePathHint, edtZBasePath)
- End Sub
- Private Sub edtZFilesToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToProcessHint, edtZFilesToProcess)
- End Sub
- Private Sub edtZFilesToExclude_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cFilesToExcludeHint, edtZFilesToExclude)
- End Sub
- Private Sub edtZTempFolder_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cTempFolderHint, edtZTempFolder)
- End Sub
- Private Sub edtZZipFilename_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cZipFilenameHint, edtZZipFilename)
- End Sub
- Private Sub lblListMinDateToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cMinDateToProcessHint, lblListMinDateToProcess)
- End Sub
- Private Sub lblListZipMaxDateToProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cMaxDateToProcessHint, lblListZipMaxDateToProcess)
- End Sub
- Private Sub lstPExcludedFileAttributes_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cExcludedFileAttributesHint, lstPExcludedFileAttributes)
- End Sub
- Private Sub lstPRequiredFileAttributes_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowHint(cRequiredFileAttributesHint, lstPRequiredFileAttributes)
- End Sub
- '------------------------------------------------------------------------------------
- 'When the form is loaded, the Listboxes are immediately filled, then the forms
- 'controls are initialized with the appropriate xZip values.
- '------------------------------------------------------------------------------------
- Private Sub Form_Load()
- ' Fill the attributes list boxes
- Call FillAttributeList(lstPRequiredFileAttributes)
- Call FillAttributeList(lstPExcludedFileAttributes)
- ' Initialize all fields on the form
- Call InitializePreviewFilesFields
- Call InitializeZipFields
- Call InitializeListZipContentsFields
- Call InitializeUnzipFields
- Call InitializeSfxFields
- End Sub
- '------------------------------------------------------------------------------------
- 'Initializes the PreviewFiles Tab.
- '------------------------------------------------------------------------------------
- Private Sub InitializePreviewFilesFields()
- edtPFilesToProcess.Text = xZip.FilesToProcess
- edtPFilesToProcess.Text = xZip.FilesToExclude
- Call SetSelectedAttributes(lstPRequiredFileAttributes, xZip.RequiredFileAttributes)
- Call SetSelectedAttributes(lstPExcludedFileAttributes, xZip.ExcludedFileAttributes)
- chkPProcessSubfolders.Value = IIf(xZip.ProcessSubfolders, vbChecked, vbUnchecked)
- End Sub
- '------------------------------------------------------------------------------------
- 'Initializes the Zip Tab.
- '------------------------------------------------------------------------------------
- Private Sub InitializeZipFields()
- edtZZipFilename.Text = xZip.ZipFilename
- edtZBasePath.Text = xZip.BasePath
- edtZFilesToProcess.Text = xZip.FilesToProcess
- chkZPreservePaths.Value = IIf(xZip.PreservePaths, vbChecked, vbUnchecked)
- chkZProcessSubfolders.Value = IIf(xZip.ProcessSubfolders, vbChecked, vbUnchecked)
- chkZUseTempFile.Value = IIf(xZip.UseTempFile, vbChecked, vbUnchecked)
- edtZTempFolder.Text = xZip.TempFolder
- End Sub
- '------------------------------------------------------------------------------------
- 'Initializes the ListZipContents Tab.
- '------------------------------------------------------------------------------------
- Private Sub InitializeListZipContentsFields()
- edtLZipFilename.Text = xZip.ZipFilename
- edtLMinDateToProcess.Text = Format(xZip.MinDateToProcess, "dd/mm/yyyy")
- edtLMaxDateToProcess.Text = Format(xZip.MaxDateToProcess, "dd/mm/yyyy")
- edtLMinSizeToProcess.Text = xZip.MinSizeToProcess
- edtLMaxSizeToProcess.Text = xZip.MaxSizeToProcess
- End Sub
- '------------------------------------------------------------------------------------
- 'Initializes the Unzip Tab.
- '------------------------------------------------------------------------------------
- Private Sub InitializeUnzipFields()
- edtUZipFilename.Text = xZip.ZipFilename
- edtUUnzipToFolder.Text = xZip.UnzipToFolder
- edtUFilesToProcess.Text = xZip.FilesToProcess
- chkUSkipIfExisting.Value = IIf(xZip.SkipIfExisting, vbChecked, vbUnchecked)
- chkUSkipIfNotExisting.Value = IIf(xZip.SkipIfNotExisting, vbChecked, vbUnchecked)
- chkUSkipIfOlderDate.Value = IIf(xZip.SkipIfOlderDate, vbChecked, vbUnchecked)
- chkUSkipIfOlderVersion.Value = IIf(xZip.SkipIfOlderVersion, vbChecked, vbUnchecked)
- End Sub
- '------------------------------------------------------------------------------------
- 'Initializes the Sfx Tab.
- '------------------------------------------------------------------------------------
- Private Sub InitializeSfxFields()
- edtSZipFilename.Text = xZip.ZipFilename
- edtSFilesToProcess.Text = xZip.FilesToProcess
- edtSBinaryModule.Text = "..\..\..\Sfx\xcdsfx32.bin"
- edtSTitle.Text = xZip.SfxStrings(xssTitle)
- edtSIntro.Text = xZip.SfxMessages(xsmIntro)
- End Sub
- '==================================================================
- ' XceedZip events
- '==================================================================
- '------------------------------------------------------------------------------------
- 'The FileStatus Event is triggered during the processing of each file. It provides
- 'progress information about the status of each file.
- '------------------------------------------------------------------------------------
- Private Sub xZip_FileStatus(ByVal sFilename As String, ByVal lSize As Long, _
- ByVal lCompressedSize As Long, ByVal lBytesProcessed As Long, _
- ByVal nBytesPercent As Integer, ByVal nCompressionRatio As Integer, _
- ByVal bFileCompleted As Boolean)
- barFile.Value = nBytesPercent
- End Sub
- '------------------------------------------------------------------------------------
- 'The GlobalStatus Event provides progress information on the execution of any
- 'Xceed Zip method.
- '------------------------------------------------------------------------------------
- Private Sub xZip_GlobalStatus(ByVal lFilesTotal As Long, ByVal lFilesProcessed As Long, _
- ByVal lFilesSkipped As Long, ByVal nFilesPercent As Integer, _
- ByVal lBytesTotal As Long, ByVal lBytesProcessed As Long, _
- ByVal lBytesSkipped As Long, ByVal nBytesPercent As Integer, _
- ByVal lBytesOutput As Long, ByVal nCompressionRatio As Integer)
- barGlobal.Value = nBytesPercent
- End Sub
- '------------------------------------------------------------------------------------
- 'The InsertDisk Event is triggered when reading or writing a spanned zip file and a
- 'new or different disk must be inserted into the drive to continue the current operation.
- '------------------------------------------------------------------------------------
- Private Sub xZip_InsertDisk(ByVal nDiskNumber As Long, bDiskInserted As Boolean)
- Dim nAnswer As VbMsgBoxResult
- If nDiskNumber = 0 Then
- nAnswer = MsgBox("This zip file is part of a multidisk zip file. Please insert the last disk of the set.", vbExclamation + vbOKCancel)
- Else
- nAnswer = MsgBox("Please insert disk #" & Trim(Str(nDiskNumber)), vbExclamation + vbOKCancel)
- End If
-
- bDiskInserted = (nAnswer = vbOK)
- End Sub
- '------------------------------------------------------------------------------------
- 'The Listing File event is triggered once for each file listed as a result of calling
- 'the ListZipContents method. It provides complete file information for each file.
- '------------------------------------------------------------------------------------
- Private Sub xZip_ListingFile(ByVal sFilename As String, ByVal sComment As String, ByVal lSize As Long, _
- ByVal lCompressedSize As Long, ByVal nCompressionRatio As Integer, _
- ByVal xAttributes As XceedZipLibCtl.xcdFileAttributes, ByVal lCRC As Long, _
- ByVal dtLastModified As Date, ByVal dtLastAccessed As Date, _
- ByVal dtCreated As Date, ByVal xMethod As XceedZipLibCtl.xcdCompressionMethod, _
- ByVal bEncrypted As Boolean, ByVal lDiskNumber As Long, _
- ByVal bExcluded As Boolean, ByVal xReason As XceedZipLibCtl.xcdSkippingReason)
- If bExcluded Then
- Call AddMessage("Excluding " & sFilename & " (reason:" & Str(xReason) & ")")
- Else
- Call AddMessage("Listing " & sFilename)
- End If
- End Sub
- '------------------------------------------------------------------------------------
- 'The PreviewingFile event is triggered for each file being listed as a result of
- 'calling the PreviewFiles method. It provides complete information for each file.
- 'It will list the files which correspond to the xZip control's property settings.
- '------------------------------------------------------------------------------------
- Private Sub xZip_PreviewingFile(ByVal sFilename As String, ByVal sSourceFilename As String, _
- ByVal lSize As Long, ByVal xAttributes As XceedZipLibCtl.xcdFileAttributes, _
- ByVal dtLastModified As Date, ByVal dtLastAccessed As Date, _
- ByVal dtCreated As Date, ByVal bExcluded As Boolean, _
- ByVal xReason As XceedZipLibCtl.xcdSkippingReason)
- If bExcluded Then
- Call AddMessage("Excluding " & sFilename & " (reason:" & Str(xReason) & ")")
- Else
- Call AddMessage("Previewing " & sFilename)
- End If
- End Sub
- '------------------------------------------------------------------------------------
- 'The ProcessCompleted event is triggered every time an Xceed Zip method has completed
- 'its operation. This event provides you with some statistics on the operation. It also
- 'provides the method call's return value (xResult parameter), which is of particular
- 'use when you have set the BackgroundProcessing flag to True.
- '------------------------------------------------------------------------------------
- Private Sub xZip_ProcessCompleted(ByVal lFilesTotal As Long, ByVal lFilesProcessed As Long, _
- ByVal lFilesSkipped As Long, ByVal lBytesTotal As Long, _
- ByVal lBytesProcessed As Long, ByVal lBytesSkipped As Long, _
- ByVal lBytesOutput As Long, ByVal nCompressionRatio As Integer, _
- ByVal xResult As XceedZipLibCtl.xcdError)
- ' Display error code and description
- Call AddMessage("Process Completed. Error code: " & xResult)
- Call AddMessage(xZip.GetErrorDescription(xvtError, xResult))
- ' Display statistics
- If xZip.CurrentOperation = xcoPreviewing Then
- AddMessage ("Total number of files previewed: " + Str(lFilesTotal))
- ElseIf xZip.CurrentOperation = xcoListing Then
- AddMessage ("Total number of files listed: " + Str(lFilesTotal))
- Else
- AddMessage ("Total number of files processed: " + Str(lFilesProcessed))
- AddMessage ("Total number of files skipped: " + Str(lFilesSkipped))
- End If
- End Sub
- '------------------------------------------------------------------------------------
- 'The SkippingFile event is triggered whenever a file cannot be processed because
- 'of a problem, because it didn't correspond to the criteria specified in the xZip
- 'controls properties (like MinDateToProcess) or because the bExcluded flag was set
- 'in the ZipPreprocessingFile or UnzipPreprocessingFile events.
- '------------------------------------------------------------------------------------
- Private Sub xZip_SkippingFile(ByVal sFilename As String, ByVal sComment As String, _
- ByVal sFilenameOnDisk As String, ByVal lSize As Long, _
- ByVal lCompressedSize As Long, _
- ByVal xAttributes As XceedZipLibCtl.xcdFileAttributes, _
- ByVal lCRC As Long, ByVal dtLastModified As Date, _
- ByVal dtLastAccessed As Date, ByVal dtCreated As Date, _
- ByVal xMethod As XceedZipLibCtl.xcdCompressionMethod, _
- ByVal bEncrypted As Boolean, _
- ByVal xReason As XceedZipLibCtl.xcdSkippingReason)
- Call AddMessage("Skipping " & sFilename & " (reason:" & Str(xReason) & ")")
- End Sub
- '------------------------------------------------------------------------------------
- 'The UnzipPreprocessingFile event represents the last validation before the real
- 'unzipping of each file begins. It gives the user chance to change information about
- 'the file, or cause the file to be skipped (by setting the bExcluded parameter)
- '------------------------------------------------------------------------------------
- Private Sub xZip_UnzipPreprocessingFile(ByVal sFilename As String, ByVal sComment As String, _
- sDestFilename As String, ByVal lSize As Long, _
- ByVal lCompressedSize As Long, xAttributes As XceedZipLibCtl.xcdFileAttributes, _
- ByVal lCRC As Long, dtLastModified As Date, dtLastAccessed As Date, _
- dtCreated As Date, ByVal xMethod As XceedZipLibCtl.xcdCompressionMethod, _
- ByVal bEncrypted As Boolean, sPassword As String, ByVal lDiskNumber As Long, _
- bExcluded As Boolean, ByVal xReason As XceedZipLibCtl.xcdSkippingReason, _
- ByVal bExisting As Boolean, xDestination As XceedZipLibCtl.xcdUnzipDestination)
- If bExcluded Then
- Call AddMessage("Excluding " & sFilename & " (reason:" & Str(xReason) & ")")
- Else
- Call AddMessage("Unzipping " & sFilename)
- End If
- End Sub
- '------------------------------------------------------------------------------------
- 'The ZipPreprocessingFile represents the last validation before the real zipping
- 'of each file begins. It gives the user chance to change information about
- 'the file, or cause the file to be skipped (by setting the bExcluded parameter)
- '------------------------------------------------------------------------------------
- Private Sub xZip_ZipPreprocessingFile(sFilename As String, sComment As String, ByVal sSourceFilename As String, _
- ByVal lSize As Long, xAttributes As XceedZipLibCtl.xcdFileAttributes, _
- dtLastModified As Date, dtLastAccessed As Date, dtCreated As Date, _
- xMethod As XceedZipLibCtl.xcdCompressionMethod, bEncrypted As Boolean, _
- sPassword As String, bExcluded As Boolean, ByVal xReason As XceedZipLibCtl.xcdSkippingReason, _
- ByVal bExisting As Boolean)
- If bExcluded Then
- Call AddMessage("Excluding " & sFilename & " (reason:" & Str(xReason) & ")")
- Else
- Call AddMessage("Zipping " & sFilename)
- End If
- End Sub
-