home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Object = "{4FE40C02-CDA8-11D1-BBB0-D0D6DE66F55A}#3.0#0"; "MAQZIPD.OCX"
- Begin VB.Form Form1
- Caption = "Maquisistem Zip Compress OCX 1.0 - Sample"
- ClientHeight = 3885
- ClientLeft = 165
- ClientTop = 450
- ClientWidth = 9180
- LinkTopic = "Form1"
- ScaleHeight = 3885
- ScaleWidth = 9180
- StartUpPosition = 2 'CenterScreen
- Begin MaquisistemZip.MaqZip MaqZip1
- Left = 4080
- Top = 1560
- _ExtentX = 1058
- _ExtentY = 1058
- End
- Begin VB.TextBox Text7
- Height = 375
- Left = 120
- TabIndex = 16
- Top = 2880
- Width = 3495
- End
- Begin VB.TextBox Text6
- Height = 375
- Left = 4560
- TabIndex = 15
- Top = 2160
- Width = 3735
- End
- Begin VB.TextBox Text5
- Height = 375
- Left = 120
- TabIndex = 14
- Top = 2160
- Width = 3495
- End
- Begin VB.TextBox Text4
- Height = 375
- Left = 120
- TabIndex = 13
- Top = 960
- Width = 3495
- End
- Begin VB.TextBox Text3
- Height = 375
- Left = 6480
- TabIndex = 8
- Top = 240
- Width = 2535
- End
- Begin VB.TextBox Text2
- Height = 375
- Left = 3840
- TabIndex = 4
- Top = 240
- Width = 2535
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 120
- TabIndex = 3
- Top = 240
- Width = 3495
- End
- Begin VB.CommandButton Command2
- Caption = "Decompress"
- Height = 495
- Left = 6120
- TabIndex = 2
- Top = 2760
- Width = 1575
- End
- Begin ComctlLib.ProgressBar ProgressBar1
- Height = 375
- Left = 120
- TabIndex = 1
- Top = 3360
- Width = 8775
- _ExtentX = 15478
- _ExtentY = 661
- _Version = 327682
- Appearance = 1
- End
- Begin VB.CommandButton Command1
- Caption = "Compress"
- Height = 495
- Left = 5640
- TabIndex = 0
- Top = 840
- Width = 1455
- End
- Begin VB.Label Label7
- Caption = "Select the destination file"
- Height = 255
- Left = 6600
- TabIndex = 12
- Top = 0
- Width = 2295
- End
- Begin VB.Label Label6
- Caption = "Select the options to decompress"
- Height = 255
- Left = 120
- TabIndex = 11
- Top = 2640
- Width = 3135
- End
- Begin VB.Label Label5
- Caption = "Select the path to the decompressed files"
- Height = 255
- Left = 4560
- TabIndex = 10
- Top = 1920
- Width = 3015
- End
- Begin VB.Label Label4
- Caption = "Select the file to decompress"
- Height = 255
- Left = 120
- TabIndex = 9
- Top = 1920
- Width = 3255
- End
- Begin VB.Line Line1
- BorderWidth = 5
- X1 = 120
- X2 = 9000
- Y1 = 1800
- Y2 = 1800
- End
- Begin VB.Label Label3
- Caption = "Select the options to compress"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 720
- Width = 3135
- End
- Begin VB.Label Label2
- Caption = "Select the destination path"
- Height = 255
- Left = 3960
- TabIndex = 6
- Top = 0
- Width = 2295
- End
- Begin VB.Label Label1
- Caption = "Select the files to compress"
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 0
- Width = 2535
- End
- Begin VB.Menu about
- Caption = "About"
- End
- Begin VB.Menu help
- Caption = "Help"
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub about_Click()
- MaqZip1.AboutBox
- End Sub
- Private Sub Command1_Click()
- Form1.Caption = "Working..."
- Screen.MousePointer = vbArrowHourglass
- ric = MaqZip1.ZipCompress(Text1.Text, Text2.Text, Text3.Text, Text4.Text)
- Screen.MousePointer = vbNormal
- End Sub
- Private Sub Command2_Click()
- Form1.Caption = "Working..."
- Screen.MousePointer = vbArrowHourglass
- ric = MaqZip1.ZipDecompress(Text5.Text, Text6.Text, Text7.Text)
- Screen.MousePointer = vbNormal
- End Sub
- Private Sub Command3_Click()
- MaqZip1.AboutBox
- End Sub
- Private Sub Form_Load()
- ProgressBar1.Min = 0
- ProgressBar1.Max = 100
- End Sub
- Private Sub MaqZip1_CompressionError(ErrorNumber As Long)
- Form1.Caption = "Compression error number : " & ErrorNumber
- ProgressBar1.Value = 0
- End Sub
- Private Sub MaqZip1_DecompressionError(ErrorNumber As Long)
- Form1.Caption = "Compression error number : " & ErrorNumber
- ProgressBar1.Value = 0
- End Sub
- Private Sub MaqZip1_Finished(LenOfDestination As Long)
- Form1.Caption = "finished"
- End Sub
- Private Sub MaqZip1_Progress(Position As Long)
- ProgressBar1.Value = Position
- End Sub
-