📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3720
ClientLeft = 60
ClientTop = 345
ClientWidth = 5655
LinkTopic = "Form1"
ScaleHeight = 3720
ScaleWidth = 5655
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame2
Caption = "Split"
Height = 1575
Left = 120
TabIndex = 6
Top = 2040
Width = 5415
Begin VB.TextBox txtOutputFile
Height = 285
Left = 1200
TabIndex = 10
Top = 600
Width = 4095
End
Begin VB.CommandButton cmdUnsplit
Caption = "Unsplit"
Height = 495
Left = 1200
TabIndex = 8
Top = 960
Width = 1215
End
Begin VB.TextBox txtTemplateName
Height = 285
Left = 1200
TabIndex = 7
Top = 240
Width = 4095
End
Begin VB.Label Label1
Caption = "Output File"
Height = 255
Index = 2
Left = 240
TabIndex = 11
Top = 600
Width = 975
End
Begin VB.Label Label1
Caption = "Template File"
Height = 255
Index = 3
Left = 240
TabIndex = 9
Top = 240
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "Split"
Height = 1815
Left = 120
TabIndex = 0
Top = 120
Width = 5415
Begin VB.TextBox txtFileName
Height = 285
Left = 1200
TabIndex = 3
Top = 240
Width = 4095
End
Begin VB.CommandButton cmdSplit
Caption = "Split"
Height = 495
Left = 1200
TabIndex = 2
Top = 1200
Width = 1215
End
Begin VB.TextBox txtFileLength
Height = 285
Left = 1200
TabIndex = 1
Text = "4096"
Top = 720
Width = 1215
End
Begin VB.Label Label1
Caption = "Split Size"
Height = 255
Index = 1
Left = 240
TabIndex = 5
Top = 720
Width = 735
End
Begin VB.Label Label1
Caption = "File Name"
Height = 255
Index = 0
Left = 240
TabIndex = 4
Top = 240
Width = 735
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdSplit_Click()
Dim err_descr As String
If Not SplitFile(txtFileName.Text, 0, err_descr, CLng(txtFileLength.Text)) Then
MsgBox err_descr
Else
MsgBox "Ok"
End If
End Sub
Private Sub cmdUnsplit_Click()
Dim err_descr As String
If Not ReassembleFile(txtTemplateName.Text, False, txtOutputFile.Text) Then
MsgBox err_descr
Else
MsgBox "Ok"
End If
End Sub
Private Sub Form_Load()
Dim dir_name As String
dir_name = App.Path
If Right$(dir_name, 1) <> "\" Then _
dir_name = dir_name & "\"
txtFileName.Text = dir_name & "julia8.gif"
txtTemplateName.Text = dir_name & "julia8.gif.tpl"
txtOutputFile.Text = dir_name & "julia8a.gif"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -