home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / azpzip / _setup.1 / frmAZPCoDec.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-25  |  10.3 KB  |  318 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
  3. Object = "{3DFE14D8-8474-11D2-853F-0080C86F38E0}#1.0#0"; "ActiveZipperProS.ocx"
  4. Begin VB.Form frmAZPCoDec 
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "ActiveZipper Pro Demo version 1.4"
  7.    ClientHeight    =   3720
  8.    ClientLeft      =   1380
  9.    ClientTop       =   1290
  10.    ClientWidth     =   6360
  11.    Icon            =   "frmAZPCoDec.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3720
  16.    ScaleWidth      =   6360
  17.    Begin VB.CheckBox pkz 
  18.       Caption         =   "Use Pkzip/PKunzip"
  19.       Height          =   255
  20.       Left            =   4560
  21.       TabIndex        =   8
  22.       Top             =   600
  23.       Width           =   1815
  24.    End
  25.    Begin AZPro.ActiveZipperPro ActiveZipperPro1 
  26.       Left            =   4320
  27.       Top             =   600
  28.       _ExtentX        =   503
  29.       _ExtentY        =   450
  30.    End
  31.    Begin VB.CommandButton Command1 
  32.       Caption         =   "&Click here to register online via Secure Server!"
  33.       Height          =   495
  34.       Left            =   4320
  35.       TabIndex        =   7
  36.       Top             =   0
  37.       Width           =   1935
  38.    End
  39.    Begin VB.CommandButton Options 
  40.       Caption         =   "&Options"
  41.       Height          =   855
  42.       Left            =   3360
  43.       Picture         =   "frmAZPCoDec.frx":000C
  44.       Style           =   1  'Graphical
  45.       TabIndex        =   6
  46.       Top             =   0
  47.       Width           =   855
  48.    End
  49.    Begin VB.CommandButton cmdExtract 
  50.       Caption         =   "&Extract"
  51.       Height          =   855
  52.       Left            =   2520
  53.       Picture         =   "frmAZPCoDec.frx":044E
  54.       Style           =   1  'Graphical
  55.       TabIndex        =   5
  56.       Top             =   0
  57.       Width           =   855
  58.    End
  59.    Begin VB.CommandButton cmdAdd 
  60.       Caption         =   "&Add..."
  61.       Height          =   855
  62.       Left            =   1680
  63.       Picture         =   "frmAZPCoDec.frx":0890
  64.       Style           =   1  'Graphical
  65.       TabIndex        =   4
  66.       Top             =   0
  67.       Width           =   855
  68.    End
  69.    Begin VB.CommandButton cmdOpen 
  70.       Caption         =   "&Open"
  71.       Height          =   855
  72.       Left            =   840
  73.       Picture         =   "frmAZPCoDec.frx":0CD2
  74.       Style           =   1  'Graphical
  75.       TabIndex        =   3
  76.       Top             =   0
  77.       Width           =   840
  78.    End
  79.    Begin VB.CommandButton cmdNew 
  80.       Caption         =   "&New"
  81.       Height          =   855
  82.       Left            =   0
  83.       Picture         =   "frmAZPCoDec.frx":1114
  84.       Style           =   1  'Graphical
  85.       TabIndex        =   2
  86.       Top             =   0
  87.       Width           =   855
  88.    End
  89.    Begin ComctlLib.ListView ListView1 
  90.       Height          =   2655
  91.       Left            =   0
  92.       TabIndex        =   1
  93.       Top             =   840
  94.       Width           =   6375
  95.       _ExtentX        =   11245
  96.       _ExtentY        =   4683
  97.       View            =   3
  98.       LabelEdit       =   1
  99.       MultiSelect     =   -1  'True
  100.       LabelWrap       =   -1  'True
  101.       HideSelection   =   -1  'True
  102.       _Version        =   327682
  103.       ForeColor       =   -2147483640
  104.       BackColor       =   -2147483643
  105.       BorderStyle     =   1
  106.       Appearance      =   1
  107.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  108.          Name            =   "Tahoma"
  109.          Size            =   8.25
  110.          Charset         =   0
  111.          Weight          =   400
  112.          Underline       =   0   'False
  113.          Italic          =   0   'False
  114.          Strikethrough   =   0   'False
  115.       EndProperty
  116.       NumItems        =   8
  117.       BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  118.          Key             =   ""
  119.          Object.Tag             =   ""
  120.          Text            =   "File Name"
  121.          Object.Width           =   1235
  122.       EndProperty
  123.       BeginProperty ColumnHeader(2) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  124.          SubItemIndex    =   1
  125.          Key             =   ""
  126.          Object.Tag             =   ""
  127.          Text            =   "Ratio"
  128.          Object.Width           =   283
  129.       EndProperty
  130.       BeginProperty ColumnHeader(3) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  131.          SubItemIndex    =   2
  132.          Key             =   ""
  133.          Object.Tag             =   ""
  134.          Text            =   "Packed"
  135.          Object.Width           =   1235
  136.       EndProperty
  137.       BeginProperty ColumnHeader(4) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  138.          SubItemIndex    =   3
  139.          Key             =   ""
  140.          Object.Tag             =   ""
  141.          Text            =   "UnPacked"
  142.          Object.Width           =   1235
  143.       EndProperty
  144.       BeginProperty ColumnHeader(5) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  145.          SubItemIndex    =   4
  146.          Key             =   ""
  147.          Object.Tag             =   ""
  148.          Text            =   "Protected"
  149.          Object.Width           =   441
  150.       EndProperty
  151.       BeginProperty ColumnHeader(6) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  152.          SubItemIndex    =   5
  153.          Key             =   ""
  154.          Object.Tag             =   ""
  155.          Text            =   "Encrypted"
  156.          Object.Width           =   441
  157.       EndProperty
  158.       BeginProperty ColumnHeader(7) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  159.          SubItemIndex    =   6
  160.          Key             =   ""
  161.          Object.Tag             =   ""
  162.          Text            =   "Date/Time"
  163.          Object.Width           =   1411
  164.       EndProperty
  165.       BeginProperty ColumnHeader(8) {0713E8C7-850A-101B-AFC0-4210102A8DA7} 
  166.          SubItemIndex    =   7
  167.          Key             =   ""
  168.          Object.Tag             =   ""
  169.          Text            =   ""
  170.          Object.Width           =   2540
  171.       EndProperty
  172.    End
  173.    Begin ComctlLib.StatusBar stat 
  174.       Align           =   2  'Align Bottom
  175.       Height          =   255
  176.       Left            =   0
  177.       TabIndex        =   0
  178.       Top             =   3465
  179.       Width           =   6360
  180.       _ExtentX        =   11218
  181.       _ExtentY        =   450
  182.       SimpleText      =   ""
  183.       _Version        =   327682
  184.       BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7} 
  185.          NumPanels       =   1
  186.          BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7} 
  187.             AutoSize        =   1
  188.             Object.Width           =   11174
  189.             MinWidth        =   3528
  190.             Text            =   "No Task..."
  191.             TextSave        =   "No Task..."
  192.             Object.Tag             =   ""
  193.          EndProperty
  194.       EndProperty
  195.    End
  196.    Begin VB.Menu mnuFile 
  197.       Caption         =   "&File"
  198.       Begin VB.Menu mnuNew 
  199.          Caption         =   "&New..."
  200.       End
  201.       Begin VB.Menu Open 
  202.          Caption         =   "&Open..."
  203.       End
  204.       Begin VB.Menu mnuExtract 
  205.          Caption         =   "&Extract..."
  206.       End
  207.       Begin VB.Menu mnuExit 
  208.          Caption         =   "E&xit"
  209.       End
  210.    End
  211.    Begin VB.Menu mnuOptions 
  212.       Caption         =   "&Options"
  213.    End
  214.    Begin VB.Menu mnuActions 
  215.       Caption         =   "&Actions"
  216.       Begin VB.Menu mnuSplitArc 
  217.          Caption         =   "&Split Archive"
  218.       End
  219.       Begin VB.Menu mnuAA 
  220.          Caption         =   "&Assemble Archive"
  221.       End
  222.    End
  223.    Begin VB.Menu mnuHelp 
  224.       Caption         =   "&Help"
  225.       Begin VB.Menu mnuAbout 
  226.          Caption         =   "&About..."
  227.       End
  228.    End
  229. Attribute VB_Name = "frmAZPCoDec"
  230. Attribute VB_GlobalNameSpace = False
  231. Attribute VB_Creatable = False
  232. Attribute VB_PredeclaredId = True
  233. Attribute VB_Exposed = False
  234. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
  235. Private Sub ActiveZipperPro1_ControlStatus(Val As String, ByVal ZipInf As String)
  236. If UseZip = False Then
  237. stat.Panels(1).Text = Val & "% Completed"
  238. stat.Panels(1).Text = ZipInf
  239. End If
  240. End Sub
  241. Private Sub ActiveZipperPro1_GetDiskNumber()
  242. MsgBox "Number of Disks needed to copy the split files: " & ActiveZipperPro1.DiskNumber
  243. End Sub
  244. Private Sub ActiveZipperPro1_NextDisk()
  245. MsgBox "Please insert the next disk", 64, "ActiveZipper Pro Demo"
  246. End Sub
  247. Private Sub cmdAdd_Click()
  248.     'As there is no current way to "Add" files
  249.     'to an existing archive, I implemented Replace.
  250.     If ActiveZipperPro1.SourceFile = "" Then
  251.         frmNew.Show
  252.     Else
  253.         frmAdd.Show
  254.     End If
  255. End Sub
  256. Private Sub cmdExtract_Click()
  257.     If frmAZPCoDec.ActiveZipperPro1.SourceFile <> "" Then
  258.         frmExtract.Show
  259.     End If
  260. End Sub
  261. Private Sub cmdNew_Click()
  262.     frmNew.Show
  263. End Sub
  264. Private Sub cmdOpen_Click()
  265.     frmOpen.Show
  266. End Sub
  267. Private Sub Command1_Click()
  268. Dim ret As Long
  269. ret = ShellExecute(Me.hwnd, vbNullString, "https://commerce.mindspring.com/cgi-bin/cgiwrap/www09282/reg_it_offsite.pl?2935", vbNullString, vbNullString, 1)
  270. If ret <> 42 Then
  271. MsgBox "How strange, you do not seem to have a browser installed", 64, "ActiveZipper Pro"
  272. End If
  273. End Sub
  274. Private Sub Form_Load()
  275.     ActiveZipperPro1.Level = 2000
  276.     RFile = False
  277.     WState = 1
  278. End Sub
  279. Private Sub Label1_Click()
  280. Prog.Value = Label1.Caption
  281. End Sub
  282. Private Sub mnuAA_Click()
  283. frmAA.Show
  284. End Sub
  285. Private Sub mnuAbout_Click()
  286.     frmAbout.Show 1
  287. End Sub
  288. Private Sub mnuExit_Click()
  289.     End
  290. End Sub
  291. Private Sub mnuExtract_Click()
  292.     If frmAZPCoDec.ActiveZipperPro1.SourceFile <> "" Then
  293.         frmExtract.Show
  294.     End If
  295. End Sub
  296. Private Sub mnuNew_Click()
  297.     frmNew.Show
  298. End Sub
  299. Private Sub mnuOptions_Click()
  300. frmOptions.Show
  301. End Sub
  302. Private Sub mnuSplitArc_Click()
  303. MsgBox "Please take a look at the Options screen before attempting to split an archive", 64, "ActiveZipper Pro Demo"
  304. frmSplitArchive.Show
  305. End Sub
  306. Private Sub Open_Click()
  307.     frmOpen.Show
  308. End Sub
  309. Private Sub Options_Click()
  310. frmOptions.Show
  311. End Sub
  312. Private Sub pkz_Click()
  313. If pkz.Value = 0 Then
  314. UseZip = False
  315. UseZip = True
  316. End If
  317. End Sub
  318.