forked from tannerhelland/VBIDEUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dependency.frm
785 lines (667 loc) · 24.8 KB
/
Dependency.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
VERSION 5.00
Object = "{D1DAC785-7BF2-42C1-9915-A540451B87F2}#1.1#0"; "VBIDEUtils1.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0"; "MSCOMCTL.OCX"
Begin VB.Form frmDependency
BorderStyle = 4 'Fixed ToolWindow
Caption = "Detect all the dependency files"
ClientHeight = 5670
ClientLeft = 45
ClientTop = 285
ClientWidth = 11295
Icon = "Dependency.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5670
ScaleWidth = 11295
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton cmdGetFromCurrentProject
Caption = "Detect dependencies for current &project"
Height = 855
Left = 9480
Picture = "Dependency.frx":08CA
Style = 1 'Graphical
TabIndex = 5
ToolTipText = "Detect dependencies of the current VB project"
Top = 120
Width = 1695
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "&Cancel"
Height = 855
Left = 7680
Picture = "Dependency.frx":1274
Style = 1 'Graphical
TabIndex = 4
ToolTipText = "Cancel the detection"
Top = 120
Width = 1695
End
Begin VB.CommandButton cmdGetDependencies
Caption = "&Detect dependencies from EXE"
Height = 855
Left = 5880
Picture = "Dependency.frx":157E
Style = 1 'Graphical
TabIndex = 3
ToolTipText = "Click the button to detect all dependencies"
Top = 120
Width = 1695
End
Begin VB.TextBox tbFile
Height = 285
Left = 1680
TabIndex = 1
ToolTipText = "Indicates the EXE/DLL/OCX to work"
Top = 360
Width = 3735
End
Begin VB.CommandButton cmdBrowse
Height = 315
Left = 5400
Picture = "Dependency.frx":1B08
Style = 1 'Graphical
TabIndex = 0
ToolTipText = "Browse to find the needed EXE/DLL/OCX"
Top = 340
Width = 375
End
Begin vbAcceleratorGrid.vbalGrid grdGrid
Height = 4455
Left = 120
TabIndex = 6
ToolTipText = "Here is the list of dependencies"
Top = 1080
Width = 11055
_ExtentX = 19500
_ExtentY = 7858
RowMode = -1 'True
GridLines = -1 'True
BackgroundPictureHeight= 0
BackgroundPictureWidth= 0
GridLineColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Editable = -1 'True
DisableIcons = -1 'True
End
Begin MSComctlLib.ImageList ImageList1
Left = 840
Top = 720
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Dependency.frx":1F4A
Key = "OCX"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Dependency.frx":2124
Key = "DLL"
EndProperty
EndProperty
End
Begin VB.Label Label1
Caption = "Executable to check"
ForeColor = &H00800000&
Height = 255
Left = 120
TabIndex = 2
Top = 405
Width = 1575
End
End
Attribute VB_Name = "frmDependency"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 26/11/1999
' * Time : 14:52
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Option Explicit
Private clsTooltips As New class_Tooltips
Private WithEvents CommonDialog1 As class_CommonDialog
Attribute CommonDialog1.VB_VarHelpID = -1
Private m_ColDep As Collection
Private Sub commonDialog1_InitDialog(ByVal hDlg As Long)
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 10/03/2000
' * Time : 15:28
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : commonDialog1_InitDialog
' * Parameters :
' * ByVal hDlg As Long
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Call CommonDialog1.CentreDialog(hDlg, Me)
End Sub
Private Sub cmdCancel_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : cmdCancel_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Call UnloadEffect(Me)
Unload Me
End Sub
Private Sub cmdGetDependencies_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 26/11/1999
' * Time : 16:15
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : cmdGetDependencies_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
' #VBIDEUtilsERROR#
On Error GoTo ERROR_cmdGetDependencies_Click
Call GetDepencies(tbFile.Text)
Call FillGrid
EXIT_cmdGetDependencies_Click:
Exit Sub
' #VBIDEUtilsERROR#
ERROR_cmdGetDependencies_Click:
Resume EXIT_cmdGetDependencies_Click
End Sub
Private Sub cmdGetFromCurrentProject_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : cmdGetFromCurrentProject_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
' #VBIDEUtilsERROR#
On Error GoTo ERROR_cmdGetFromCurrentProject_Click
If VBInstance.ActiveVBProject Is Nothing Then
Exit Sub
End If
Dim nI As Long
Dim sFile As String
Dim clsFileVersion As class_FileVersion
Dim cHourglass As class_Hourglass
Set cHourglass = New class_Hourglass
' *** Turn redraw off for speed:
grdGrid.Redraw = False
' *** Clear the grid
grdGrid.Clear
' *** Set the number of rows
grdGrid.Rows = VBInstance.ActiveVBProject.References.Count
' *** Fill the grid
For nI = 1 To VBInstance.ActiveVBProject.References.Count
Set clsFileVersion = New class_FileVersion
On Error Resume Next
clsFileVersion.FullPathName = VBInstance.ActiveVBProject.References(nI).FullPath
If err <> 0 Then
clsFileVersion.FullPathName = VBInstance.ActiveVBProject.References(nI).Name
End If
On Error GoTo ERROR_cmdGetFromCurrentProject_Click
' *** Add one row in the grid
With grdGrid
If clsFileVersion.FileType = "DLL" Then
.CellDetails nI, 1, , DT_CENTER, ImageList1.ListImages("OCX").index - 1
Else
.CellDetails nI, 1, , DT_CENTER, ImageList1.ListImages("DLL").index - 1
End If
.CellDetails nI, 2, clsFileVersion.FullPathName, , , vbWhite, &H80&
.CellDetails nI, 3, VBInstance.ActiveVBProject.References(nI).Major & "." & VBInstance.ActiveVBProject.References(nI).Minor, DT_MODIFYSTRING
.CellDetails nI, 4, VBInstance.ActiveVBProject.References(nI).Description, DT_MODIFYSTRING
End With
Set clsFileVersion = Nothing
Next
For nI = 1 To grdGrid.Rows
If grdGrid.ColumnWidth(2) < grdGrid.EvaluateTextWidth(nI, 2) + 10 Then grdGrid.ColumnWidth(2) = grdGrid.EvaluateTextWidth(nI, 2) + 10
If grdGrid.ColumnWidth(3) < grdGrid.EvaluateTextWidth(nI, 3) + 10 Then grdGrid.ColumnWidth(3) = grdGrid.EvaluateTextWidth(nI, 3) + 10
If grdGrid.ColumnWidth(4) < grdGrid.EvaluateTextWidth(nI, 4) + 10 Then grdGrid.ColumnWidth(4) = grdGrid.EvaluateTextWidth(nI, 4) + 10
Next
' *** Turn redraw on
grdGrid.Redraw = True
EXIT_cmdGetFromCurrentProject_Click:
Exit Sub
' #VBIDEUtilsERROR#
ERROR_cmdGetFromCurrentProject_Click:
Resume EXIT_cmdGetFromCurrentProject_Click
End Sub
Private Sub Form_Load()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : Form_Load
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
On Error Resume Next
Call InitTooltips
Call InitGrid
If Not (VBInstance.ActiveVBProject Is Nothing) Then
tbFile.Text = VBInstance.ActiveVBProject.BuildFileName
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 04/11/1999
' * Time : 16:51
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : Form_Unload
' * Parameters :
' * Cancel As Integer
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
On Error Resume Next
Set clsTooltips = Nothing
End Sub
Private Sub cmdBrowse_Click()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 17/09/99
' * Time : 11:38
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : cmdBrowse_Click
' * Parameters :
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Set CommonDialog1 = New class_CommonDialog
CommonDialog1.DialogTitle = "Choose the executable to check"
CommonDialog1.DefaultExt = "*.exe"
CommonDialog1.FileName = "*.exe"
CommonDialog1.Filter = "Executable (*.exe)|*.exe|OCX (*.ocx)|*.ocx|DLL (*.dll)|*.dll|All Files (*.*)|*.*"
CommonDialog1.InitDir = App.Path
CommonDialog1.Flags = OFN_FILEMUSTEXIST + OFN_HIDEREADONLY + OFN_EXPLORER
CommonDialog1.CancelError = False
CommonDialog1.HookDialog = True
CommonDialog1.ShowOpen
If CommonDialog1.FileName = "" Then Exit Sub
tbFile.Text = CommonDialog1.FileName
End Sub
Public Function ReplaceIt(sOriginal As String, sItem As String, sReplace As String, bReplaceAll As Boolean) As String
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 26/11/1999
' * Time : 16:06
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : ReplaceIt
' * Parameters :
' * sOriginal As String
' * sItem As String
' * sReplace As String
' * bReplaceAll As Boolean
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Dim sLeft As String
Dim sRight As String
Dim sTmp As String
If InStr(sOriginal, sItem) = False Then
ReplaceIt = sOriginal
Exit Function
End If
If bReplaceAll = False Then
sLeft = left$(sOriginal, InStr(sOriginal, sItem) - 1)
sRight = right$(sOriginal, (Len(sOriginal) - Len(sLeft) - Len(sItem)))
ReplaceIt = sLeft & sReplace & sRight
Exit Function
End If
sTmp = sOriginal
Do Until InStr(sTmp, sItem) = 0
sLeft = left$(sTmp, InStr(sTmp, sItem) - 1)
sRight = right$(sTmp, (Len(sTmp) - Len(sLeft) - Len(sItem)))
sTmp = sLeft & sReplace & sRight
Loop
ReplaceIt = sTmp
End Function
Private Sub GetDepencies(sFileName As String)
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 26/11/1999
' * Time : 16:06
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : GetDepencies
' * Parameters :
' * sFilename As String
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
' #VBIDEUtilsERROR#
On Error GoTo ERROR_GetDepencies
Dim sAllFile As String
Dim nPos As Long
Dim nStartPos As Long
Dim nEndPos As Long
Dim nPos1 As Long
Dim nPos2 As Long
Dim nChar As Integer
Dim sFile As String
Dim nI As Long
If sFileName = "" Then Exit Sub
Set m_ColDep = Nothing
Set m_ColDep = New Collection
' *** Opens file and stores it in a string
Open sFileName For Binary As #1
sAllFile = Space(LOF(1))
Get #1, , sAllFile
Close #1
' *** Sets the search point at the first character
nPos = 1
nPos1 = InStr(nPos, sAllFile, ".dll")
nPos2 = InStr(nPos, sAllFile, ".DLL")
' *** Keeps going until no more are found
Do While (nPos1 <> 0) Or (nPos2 <> 0)
If nPos1 < nPos2 Then
nEndPos = nPos1
Else
nEndPos = nPos2
End If
If nPos1 = 0 Then nEndPos = nPos2
If nEndPos = 0 Then nEndPos = nPos1
' *** Sets the beginning position 8 characters behind the
' *** end. No system files are going to be over 8 characters
nStartPos = nEndPos - 8
' *** Sets the search point (not the same as starting
' *** position) 4 characters ahead (don't want
' *** to find the same file again so make it start one char
' *** past what we're at not
nPos = nEndPos + 4
' *** This cycles through each character and if it finds a
' *** space or null character, it sets the starting position
' *** accordingly
nI = 1
Do While True
nChar = Asc(Mid$(sAllFile, nEndPos - nI, 1))
If ((nChar > Asc("z")) Or (nChar < Asc(" "))) And (nChar <> Asc("~")) Then
nStartPos = nStartPos + (9 - nI)
Exit Do
End If
nI = nI + 1
Loop
' *** Gets the filename and puts it in lowercase
sFile = LCase$(Mid$(sAllFile, nStartPos, (nEndPos - nStartPos) + 4))
m_ColDep.Add sFile, sFile
Skip_Dll:
nPos1 = InStr(nPos, sAllFile, ".dll")
nPos2 = InStr(nPos, sAllFile, ".DLL")
Loop
' *** Starts over and does the same for .ocx
nPos = 1
nPos1 = InStr(nPos, sAllFile, ".ocx")
nPos2 = InStr(nPos, sAllFile, ".OCX")
Do While (nPos1 <> 0) Or (nPos2 <> 0)
If nPos1 < nPos2 Then
nEndPos = nPos1
Else
nEndPos = nPos2
End If
If nPos1 = 0 Then nEndPos = nPos2
If nEndPos = 0 Then nEndPos = nPos1
nStartPos = nEndPos - 8
nPos = nEndPos + 4
nI = 1
Do While True
nChar = Asc(Mid$(sAllFile, nEndPos - nI, 1))
If ((nChar > Asc("z")) Or (nChar < Asc(" "))) And (nChar <> Asc("~")) Then
nStartPos = nStartPos + (9 - nI)
Exit Do
End If
nI = nI + 1
Loop
sFile = LCase$(Mid$(sAllFile, nStartPos, (nEndPos - nStartPos) + 4))
m_ColDep.Add sFile, sFile
Skip_Ocx:
nPos1 = InStr(nPos, sAllFile, ".ocx")
nPos2 = InStr(nPos, sAllFile, ".OCX")
Loop
EXIT_GetDepencies:
Exit Sub
' #VBIDEUtilsERROR#
ERROR_GetDepencies:
If err = 457 Then Resume Next
Resume EXIT_GetDepencies
End Sub
Private Sub InitGrid()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/02/99
' * Time : 12:04
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : InitGrid
' * Parameters :
' **********************************************************************
' * Comments : Init the grid
' *
' *
' **********************************************************************
Dim cHourglass As class_Hourglass
Set cHourglass = New class_Hourglass
On Error Resume Next
' *** Init the grid
With grdGrid
' *** Turn redraw off for speed:
.Redraw = False
.BackColor = &H80000018
.ImageList = ImageList1.hImageList
.AddColumn "Icone", "", ecgHdrTextALignCentre, , 20, , True, , False
.AddColumn "File", "File", ecgHdrTextALignLeft, , 80
.AddColumn "Version", "Version", ecgHdrTextALignLeft, , 80
.AddColumn "Comment", "Comment", ecgHdrTextALignLeft, , 80
.SetHeaders
' *** Ensure the grid will draw!
.Redraw = True
End With
End Sub
Private Sub FillGrid()
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 2/02/99
' * Time : 12:05
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : FillGrid
' * Parameters :
' **********************************************************************
' * Comments : Fill the Grid with the values
' *
' *
' **********************************************************************
' #VBIDEUtilsERROR#
On Error GoTo ERROR_FillGrid
Dim nI As Long
Dim sFile As String
Dim clsFileInfo As class_FileInfo
Dim clsFileVersion As class_FileVersion
Dim cHourglass As class_Hourglass
Set cHourglass = New class_Hourglass
' *** Turn redraw off for speed:
grdGrid.Redraw = False
' *** Clear the grid
grdGrid.Clear
' *** Set the number of rows
grdGrid.Rows = m_ColDep.Count
' *** Fill the grid
For nI = 1 To m_ColDep.Count
Set clsFileInfo = New class_FileInfo
sFile = GetFile(m_ColDep(nI))
If sFile = "" Then sFile = m_ColDep(nI)
If InStr(sFile, ":") = 0 Then
If FileExist(GetSystemDirectory() & sFile) Then
sFile = GetSystemDirectory() & sFile
End If
End If
clsFileInfo.FullPathName = sFile
sFile = LCase$(clsFileInfo.FullPathName)
Set clsFileVersion = New class_FileVersion
clsFileVersion.FullPathName = clsFileInfo.FullPathName
' *** Add one row in the grid
With grdGrid
If clsFileVersion.FileType = "DLL" Then
.CellDetails nI, 1, , DT_CENTER, ImageList1.ListImages("DLL").index - 1
Else
.CellDetails nI, 1, , DT_CENTER, ImageList1.ListImages("OCX").index - 1
End If
.CellDetails nI, 2, clsFileInfo.FullPathName, , , vbWhite, &H80&
.CellDetails nI, 3, clsFileVersion.ProductVersion, DT_MODIFYSTRING
.CellDetails nI, 4, clsFileVersion.FileDescription, DT_MODIFYSTRING
End With
Set clsFileVersion = Nothing
Set clsFileInfo = Nothing
Next
For nI = 1 To grdGrid.Rows
If grdGrid.ColumnWidth(2) < grdGrid.EvaluateTextWidth(nI, 2) + 10 Then grdGrid.ColumnWidth(2) = grdGrid.EvaluateTextWidth(nI, 2) + 10
If grdGrid.ColumnWidth(3) < grdGrid.EvaluateTextWidth(nI, 3) + 10 Then grdGrid.ColumnWidth(3) = grdGrid.EvaluateTextWidth(nI, 3) + 10
If grdGrid.ColumnWidth(4) < grdGrid.EvaluateTextWidth(nI, 4) + 10 Then grdGrid.ColumnWidth(4) = grdGrid.EvaluateTextWidth(nI, 4) + 10
Next
' *** Turn redraw on
grdGrid.Redraw = True
Exit Sub
' #VBIDEUtilsERROR#
ERROR_FillGrid:
Exit Sub
End Sub
Private Sub grdGrid_DblClick(ByVal lRow As Long, ByVal lCol As Long)
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 29/11/1999
' * Time : 11:15
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : grdGrid_DblClick
' * Parameters :
' * ByVal lRow As Long
' * ByVal lCol As Long
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
tbFile.Text = grdGrid.CellText(lRow, 2)
End Sub
Private Sub InitTooltips(Optional Flags As TooltipFlagConstants)
' #VBIDEUtils#************************************************************
' * Programmer Name : removed
' * Web Site : http://www.ppreview.net
' * E-Mail : removed
' * Date : 29/11/1999
' * Time : 11:15
' * Module Name : frmDependency
' * Module Filename : Dependency.frm
' * Procedure Name : InitTooltips
' * Parameters :
' * Optional Flags As TooltipFlagConstants
' **********************************************************************
' * Comments :
' *
' *
' **********************************************************************
Dim nI As Integer
On Error Resume Next
With clsTooltips
.Create Me, ttfBalloon
.MaxTipWidth = 70
.Icon = itInfoIcon
.Title = "VBIDEUtils"
For nI = 0 To Me.Controls.Count
If Trim$(Me.Controls(nI).ToolTipText) <> "" Then
If err = 0 Then
.AddTool Me.Controls(nI), tfTransparent, Me.Controls(nI).ToolTipText
Me.Controls(nI).ToolTipText = ""
Else
err.Clear
End If
End If
Next
End With
End Sub