home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 31
/
CDASC_31_1996_juillet_aout.iso
/
vrac
/
altd201a.zip
/
VB4016.ARJ
/
VB40.16
/
EX23VB.FRM
< prev
next >
Wrap
Text File
|
1996-04-19
|
11KB
|
344 lines
VERSION 4.00
Begin VB.Form Form1
Caption = "VB Example 23"
ClientHeight = 4140
ClientLeft = 1605
ClientTop = 1650
ClientWidth = 5115
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 4545
Left = 1545
LinkTopic = "Form1"
ScaleHeight = 4140
ScaleWidth = 5115
Top = 1305
Width = 5235
Begin VB.TextBox InputFiles
Height = 375
Left = 1680
TabIndex = 12
Text = "Input Files"
Top = 720
Width = 3015
End
Begin VB.TextBox ArchiveName
Height = 375
Left = 1680
TabIndex = 11
Text = "Archive Name"
Top = 240
Width = 3015
End
Begin VB.CommandButton About
Caption = "About"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 3240
TabIndex = 10
Top = 1320
Width = 1335
End
Begin VB.CommandButton ExitButton
Caption = "Exit"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 9
Top = 1320
Width = 1335
End
Begin VB.TextBox JobProgressWindow
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Enabled = 0 'False
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 3
Text = "JobProgressWindow"
Top = 3120
Visible = 0 'False
Width = 1935
End
Begin VB.TextBox FileProgressWindow
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Enabled = 0 'False
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 2
Text = "FileProgressWindow"
Top = 2520
Visible = 0 'False
Width = 1935
End
Begin VB.TextBox TextWindow
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 495
Left = 2640
TabIndex = 1
Text = "Text1"
Top = 1920
Width = 1935
End
Begin VB.CommandButton Compress
Caption = "Compress"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 0
Top = 1320
Width = 1335
End
Begin Threed.SSPanel SSPanel1
Height = 495
Left = 2640
TabIndex = 4
Top = 2520
Width = 1935
_version = 65536
_extentx = 3413
_extenty = 873
_stockprops = 15
caption = "FileProgressGauge"
backcolor = 12632256
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
floodtype = 1
End
Begin Threed.SSPanel SSPanel2
Height = 495
Left = 2640
TabIndex = 5
Top = 3120
Width = 1935
_version = 65536
_extentx = 3413
_extenty = 873
_stockprops = 15
caption = "JobProgressGauge"
backcolor = 12632256
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
floodtype = 1
End
Begin VB.Label Label5
Alignment = 1 'Right Justify
Caption = "Input Files:"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 14
Top = 720
Width = 1215
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
Caption = "Archive Name:"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 13
Top = 240
Width = 1215
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "Job Percent Complete:"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 495
Left = 480
TabIndex = 8
Top = 3120
Width = 1815
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "File Percent Complete:"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 7
Top = 2520
Width = 1815
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "File Being Compressed:"
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 6
Top = 1920
Width = 1815
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Dim LibraryHandle As Long
Private Sub About_Click()
frmAbout.Text1 = "EX23VB demonstrates the simplified interface. Compress will add INPUT*.DAT"
frmAbout.Text1 = frmAbout.Text1 + " files to VB00.ZIP."
frmAbout.Show 1
End Sub
Private Sub Compress_Click()
Dim i As Integer
About.SetFocus
Compress.Enabled = 0
ExitButton.Enabled = 0
i = ALCreate(ArchiveName.text, InputFiles.text, 0, TextWindow.hWnd, FileProgressWindow.hWnd, JobProgressWindow.hWnd)
ExitButton.Enabled = 1
Compress.Enabled = 1
Compress.SetFocus
End Sub
Private Sub ExitButton_Click()
FreeLibrary (LibraryHandle)
End
End Sub
Private Sub FileProgressWindow_Change()
SSPanel1.FloodPercent = Val(FileProgressWindow.text)
End Sub
Private Sub Form_Load()
ChDrive App.Path
ChDir App.Path
LibraryHandle = LoadLibrary(DLLName)
If LibraryHandle < 32 Then
InputFiles.text = "**Error Loading " + DLLName + "**"
Else
InputFiles.text = "*.frm, *.dat"
End If
ArchiveName.text = "vb00.zip"
End Sub
Private Sub Form_Unload(Cancel As Integer)
FreeLibrary (LibraryHandle)
End Sub
Private Sub JobProgressWindow_Change()
SSPanel2.FloodPercent = Val(JobProgressWindow.text)
End Sub
Private Sub TextWindow_GotFocus()
ExitButton.SetFocus
End Sub