-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChooseDictSize.frm
91 lines (89 loc) · 2.65 KB
/
ChooseDictSize.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
VERSION 5.00
Begin VB.Form ChooseDictSize
Caption = "Choose dictionary size"
ClientHeight = 2715
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 2715
ScaleWidth = 4680
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton btnOk
Caption = "OK"
Height = 495
Left = 1560
TabIndex = 4
Top = 1920
Width = 1695
End
Begin VB.ComboBox CMBDictionarySize
Height = 315
ItemData = "ChooseDictSize.frx":0000
Left = 2280
List = "ChooseDictSize.frx":0002
TabIndex = 0
Text = "Combo1"
Top = 1320
Width = 1095
End
Begin VB.Label Label3
Caption = "Kb"
Height = 255
Left = 3480
TabIndex = 3
Top = 1320
Width = 735
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "Maximum size is"
Height = 255
Left = 120
TabIndex = 2
Top = 1320
Width = 2055
End
Begin VB.Label Label1
Caption = "Choose the maximum dictionary size for this compressor"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 360
TabIndex = 1
Top = 240
Width = 4095
End
End
Attribute VB_Name = "ChooseDictSize"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub btnOk_Click()
DictionarySize = Val(CMBDictionarySize.Text)
Me.Hide
DoEvents
End Sub
Private Sub CMBDictionarySize_Change()
If Val(CMBDictionarySize.Text) < 1 Or Val(CMBDictionarySize.Text) > 64 Then
MsgBox "This is not an item from the list"
CMBDictionarySize.Text = Str(DictionarySize)
End If
End Sub
Private Sub Form_Load()
Dim X As Integer
CMBDictionarySize.Clear
For X = 1 To 64
CMBDictionarySize.AddItem Str(X)
Next
If DictionarySize = 0 Then DictionarySize = 16
CMBDictionarySize.Text = Str(DictionarySize)
End Sub