-
Notifications
You must be signed in to change notification settings - Fork 1
/
OpenFileWindow - 副本.frm
211 lines (210 loc) · 6.28 KB
/
OpenFileWindow - 副本.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
VERSION 5.00
Begin VB.Form SaveFileWindow
BackColor = &H8000000E&
BorderStyle = 3 'Fixed Dialog
Caption = "保存文件"
ClientHeight = 5745
ClientLeft = 45
ClientTop = 390
ClientWidth = 8550
Icon = "OpenFileWindow - 副本.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5745
ScaleWidth = 8550
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text2
Appearance = 0 'Flat
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 7
Top = 4440
Width = 5535
End
Begin VB.DriveListBox Drive1
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 6
Top = 120
Width = 2415
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2760
Locked = -1 'True
TabIndex = 5
Top = 120
Width = 5535
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6000
TabIndex = 4
Text = ".doc"
Top = 4440
Width = 2295
End
Begin VB.CommandButton Command2
Caption = "取消"
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6750
TabIndex = 3
Top = 5160
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5040
TabIndex = 2
Top = 5160
Width = 1455
End
Begin VB.FileListBox File1
Appearance = 0 'Flat
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3345
Left = 3000
TabIndex = 1
Top = 720
Width = 5295
End
Begin VB.DirListBox Dir1
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3510
Left = 240
TabIndex = 0
Top = 720
Width = 2535
End
Begin VB.Line Line1
BorderColor = &H80000011&
X1 = 8640
X2 = 0
Y1 = 5040
Y2 = 5040
End
End
Attribute VB_Name = "SaveFileWindow"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Northern As String
Private Sub Combo1_Click()
File1.Pattern = Combo1.text
End Sub
Private Sub Command1_Click()
Northern = SaveFileWindow.File1.Path + "\" + SaveFileWindow.Text2.text + SaveFileWindow.Combo1.text
Form1.RichTextBox1.SaveFile Northern
Form1.RichTextBox1.FileName = Northern
Form1.Caption = "AWord:" + Form1.RichTextBox1.FileName
Form1.Show
Unload Me
Unload SaveFileWindow
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Dir1_Click()
File1.Path = Dir1.Path
Text1.text = Dir1.Path & "\"
End Sub
Private Sub Drive1_change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Text2.text = File1.FileName
End Sub
Private Sub File1_DblClick()
Northern = OpenFileWindow.File1.Path + "\" + SaveFileWindow.Text2.text + SaveFileWindow.Combo1.text
Form1.RichTextBox1.SaveFile Northern
Form1.RichTextBox1.FileName = Northern
Form1.Show
Form1.Caption = "AWord:" + Form1.RichTextBox1.FileName
Unload Me
End Sub
Private Sub Form_Load()
Text1.text = Dir1.Path & "\"
With Combo1
.AddItem ".doc"
.AddItem ".rtf"
.AddItem ".fns"
.AddItem " "
End With
File1.Pattern = Combo1.text
Dir1.Path = Drive1.Drive
End Sub