home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / zpcomocx / sample.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-04-07  |  6.0 KB  |  206 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
  3. Object = "{4FE40C02-CDA8-11D1-BBB0-D0D6DE66F55A}#3.0#0"; "MAQZIPD.OCX"
  4. Begin VB.Form Form1 
  5.    Caption         =   "Maquisistem Zip Compress OCX 1.0 - Sample"
  6.    ClientHeight    =   3885
  7.    ClientLeft      =   165
  8.    ClientTop       =   450
  9.    ClientWidth     =   9180
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   3885
  12.    ScaleWidth      =   9180
  13.    StartUpPosition =   2  'CenterScreen
  14.    Begin MaquisistemZip.MaqZip MaqZip1 
  15.       Left            =   4080
  16.       Top             =   1560
  17.       _ExtentX        =   1058
  18.       _ExtentY        =   1058
  19.    End
  20.    Begin VB.TextBox Text7 
  21.       Height          =   375
  22.       Left            =   120
  23.       TabIndex        =   16
  24.       Top             =   2880
  25.       Width           =   3495
  26.    End
  27.    Begin VB.TextBox Text6 
  28.       Height          =   375
  29.       Left            =   4560
  30.       TabIndex        =   15
  31.       Top             =   2160
  32.       Width           =   3735
  33.    End
  34.    Begin VB.TextBox Text5 
  35.       Height          =   375
  36.       Left            =   120
  37.       TabIndex        =   14
  38.       Top             =   2160
  39.       Width           =   3495
  40.    End
  41.    Begin VB.TextBox Text4 
  42.       Height          =   375
  43.       Left            =   120
  44.       TabIndex        =   13
  45.       Top             =   960
  46.       Width           =   3495
  47.    End
  48.    Begin VB.TextBox Text3 
  49.       Height          =   375
  50.       Left            =   6480
  51.       TabIndex        =   8
  52.       Top             =   240
  53.       Width           =   2535
  54.    End
  55.    Begin VB.TextBox Text2 
  56.       Height          =   375
  57.       Left            =   3840
  58.       TabIndex        =   4
  59.       Top             =   240
  60.       Width           =   2535
  61.    End
  62.    Begin VB.TextBox Text1 
  63.       Height          =   375
  64.       Left            =   120
  65.       TabIndex        =   3
  66.       Top             =   240
  67.       Width           =   3495
  68.    End
  69.    Begin VB.CommandButton Command2 
  70.       Caption         =   "Decompress"
  71.       Height          =   495
  72.       Left            =   6120
  73.       TabIndex        =   2
  74.       Top             =   2760
  75.       Width           =   1575
  76.    End
  77.    Begin ComctlLib.ProgressBar ProgressBar1 
  78.       Height          =   375
  79.       Left            =   120
  80.       TabIndex        =   1
  81.       Top             =   3360
  82.       Width           =   8775
  83.       _ExtentX        =   15478
  84.       _ExtentY        =   661
  85.       _Version        =   327682
  86.       Appearance      =   1
  87.    End
  88.    Begin VB.CommandButton Command1 
  89.       Caption         =   "Compress"
  90.       Height          =   495
  91.       Left            =   5640
  92.       TabIndex        =   0
  93.       Top             =   840
  94.       Width           =   1455
  95.    End
  96.    Begin VB.Label Label7 
  97.       Caption         =   "Select the destination file"
  98.       Height          =   255
  99.       Left            =   6600
  100.       TabIndex        =   12
  101.       Top             =   0
  102.       Width           =   2295
  103.    End
  104.    Begin VB.Label Label6 
  105.       Caption         =   "Select the options to decompress"
  106.       Height          =   255
  107.       Left            =   120
  108.       TabIndex        =   11
  109.       Top             =   2640
  110.       Width           =   3135
  111.    End
  112.    Begin VB.Label Label5 
  113.       Caption         =   "Select the path to the decompressed files"
  114.       Height          =   255
  115.       Left            =   4560
  116.       TabIndex        =   10
  117.       Top             =   1920
  118.       Width           =   3015
  119.    End
  120.    Begin VB.Label Label4 
  121.       Caption         =   "Select the file to decompress"
  122.       Height          =   255
  123.       Left            =   120
  124.       TabIndex        =   9
  125.       Top             =   1920
  126.       Width           =   3255
  127.    End
  128.    Begin VB.Line Line1 
  129.       BorderWidth     =   5
  130.       X1              =   120
  131.       X2              =   9000
  132.       Y1              =   1800
  133.       Y2              =   1800
  134.    End
  135.    Begin VB.Label Label3 
  136.       Caption         =   "Select the options to compress"
  137.       Height          =   255
  138.       Left            =   120
  139.       TabIndex        =   7
  140.       Top             =   720
  141.       Width           =   3135
  142.    End
  143.    Begin VB.Label Label2 
  144.       Caption         =   "Select the destination path"
  145.       Height          =   255
  146.       Left            =   3960
  147.       TabIndex        =   6
  148.       Top             =   0
  149.       Width           =   2295
  150.    End
  151.    Begin VB.Label Label1 
  152.       Caption         =   "Select the files to compress"
  153.       Height          =   255
  154.       Left            =   120
  155.       TabIndex        =   5
  156.       Top             =   0
  157.       Width           =   2535
  158.    End
  159.    Begin VB.Menu about 
  160.       Caption         =   "About"
  161.    End
  162.    Begin VB.Menu help 
  163.       Caption         =   "Help"
  164.    End
  165. Attribute VB_Name = "Form1"
  166. Attribute VB_GlobalNameSpace = False
  167. Attribute VB_Creatable = False
  168. Attribute VB_PredeclaredId = True
  169. Attribute VB_Exposed = False
  170. Private Sub about_Click()
  171. MaqZip1.AboutBox
  172. End Sub
  173. Private Sub Command1_Click()
  174. Form1.Caption = "Working..."
  175. Screen.MousePointer = vbArrowHourglass
  176. ric = MaqZip1.ZipCompress(Text1.Text, Text2.Text, Text3.Text, Text4.Text)
  177. Screen.MousePointer = vbNormal
  178. End Sub
  179. Private Sub Command2_Click()
  180. Form1.Caption = "Working..."
  181. Screen.MousePointer = vbArrowHourglass
  182. ric = MaqZip1.ZipDecompress(Text5.Text, Text6.Text, Text7.Text)
  183. Screen.MousePointer = vbNormal
  184. End Sub
  185. Private Sub Command3_Click()
  186. MaqZip1.AboutBox
  187. End Sub
  188. Private Sub Form_Load()
  189. ProgressBar1.Min = 0
  190. ProgressBar1.Max = 100
  191. End Sub
  192. Private Sub MaqZip1_CompressionError(ErrorNumber As Long)
  193. Form1.Caption = "Compression error number : " & ErrorNumber
  194. ProgressBar1.Value = 0
  195. End Sub
  196. Private Sub MaqZip1_DecompressionError(ErrorNumber As Long)
  197. Form1.Caption = "Compression error number : " & ErrorNumber
  198. ProgressBar1.Value = 0
  199. End Sub
  200. Private Sub MaqZip1_Finished(LenOfDestination As Long)
  201. Form1.Caption = "finished"
  202. End Sub
  203. Private Sub MaqZip1_Progress(Position As Long)
  204. ProgressBar1.Value = Position
  205. End Sub
  206.