-
Notifications
You must be signed in to change notification settings - Fork 3
/
frmMain.frm
873 lines (688 loc) · 21.6 KB
/
frmMain.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
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
VERSION 5.00
Begin VB.Form frmMain
AutoRedraw = -1 'True
Caption = "Drive OSM"
ClientHeight = 10950
ClientLeft = 225
ClientTop = 570
ClientWidth = 11370
BeginProperty Font
Name = "Segoe UI"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 730
ScaleMode = 3 'Pixel
ScaleWidth = 758
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.PictureBox picSTAT
Appearance = 0 'Flat
ForeColor = &H80000008&
Height = 11775
Left = 120
ScaleHeight = 783
ScaleMode = 3 'Pixel
ScaleWidth = 159
TabIndex = 21
Top = 120
Width = 2415
Begin VB.Label labSTAT
Caption = "--------------------------------------"
Height = 3375
Left = 0
TabIndex = 22
Top = 0
Width = 2295
End
End
Begin VB.PictureBox picPanel
Appearance = 0 'Flat
BeginProperty Font
Name = "Courier New"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 10335
Left = 8400
ScaleHeight = 687
ScaleMode = 3 'Pixel
ScaleWidth = 159
TabIndex = 1
Top = 120
Width = 2415
Begin VB.CheckBox chkTargetAll
Caption = "Same Target for every car"
Height = 495
Left = 120
TabIndex = 25
ToolTipText = "On mouse right click set same target for all the cars"
Top = 8760
Width = 1455
End
Begin VB.TextBox txtFollow
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H8000000F&
BorderStyle = 0 'None
Height = 495
Left = 1560
TabIndex = 24
Text = "0"
Top = 5760
Width = 735
End
Begin VB.CheckBox ChkFollow
Caption = "Follow Car"
Height = 375
Left = 120
TabIndex = 23
Top = 5040
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 855
Left = 2280
TabIndex = 18
Top = 4680
Visible = 0 'False
Width = 615
End
Begin VB.CommandButton Command3
Caption = "Dijkstra TEST"
Enabled = 0 'False
Height = 735
Left = 2280
TabIndex = 17
Top = 3960
Visible = 0 'False
Width = 1575
End
Begin VB.FileListBox File1
Height = 2790
Left = 120
Pattern = "*.OSM"
TabIndex = 16
Top = 840
Width = 1815
End
Begin VB.CommandButton Command4
Caption = "Command4"
Height = 975
Left = 2280
TabIndex = 15
Top = 3000
Visible = 0 'False
Width = 855
End
Begin VB.CommandButton Command5
Caption = "load purged"
Enabled = 0 'False
Height = 375
Left = 120
TabIndex = 14
Top = 4080
Width = 1455
End
Begin VB.CheckBox chSave
Caption = "PNG"
Height = 255
Left = 120
TabIndex = 13
Top = 9960
Width = 1095
End
Begin VB.CommandButton cmdNextCar
Caption = ">> Next Car"
Height = 375
Left = 120
TabIndex = 12
Top = 5520
Width = 1455
End
Begin VB.CommandButton cmdPrevCar
Caption = "<< Prev Car"
Height = 375
Left = 120
TabIndex = 11
Top = 5880
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "Load MAP"
Enabled = 0 'False
Height = 735
Left = 120
TabIndex = 10
Top = 120
Width = 1815
End
Begin VB.CheckBox chkShowPath
Caption = "ShowPath"
Height = 375
Left = 120
TabIndex = 9
Top = 4560
Width = 1455
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "+"
Height = 495
Index = 5
Left = 1320
TabIndex = 8
Top = 6360
Width = 615
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "o"
Height = 495
Index = 6
Left = 840
TabIndex = 7
Top = 6360
Width = 375
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "-"
Height = 495
Index = 4
Left = 120
TabIndex = 6
Top = 6360
Width = 615
End
Begin VB.CommandButton cmdNAVIGATE
Caption = ">"
Enabled = 0 'False
Height = 375
Index = 3
Left = 1320
TabIndex = 5
Top = 7200
Width = 495
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "^"
Enabled = 0 'False
Height = 375
Index = 0
Left = 720
TabIndex = 4
Top = 6960
Width = 495
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "v"
Enabled = 0 'False
Height = 375
Index = 1
Left = 720
TabIndex = 3
Top = 7560
Width = 495
End
Begin VB.CommandButton cmdNAVIGATE
Caption = "<"
Enabled = 0 'False
Height = 375
Index = 2
Left = 120
TabIndex = 2
Top = 7200
Width = 495
End
Begin VB.Label Label1
Caption = "LEFT CLICK to select Car"
Height = 855
Left = 120
TabIndex = 20
Top = 8040
Width = 2175
End
Begin VB.Label lSize
Alignment = 2 'Center
Height = 375
Left = 120
TabIndex = 19
Top = 3600
Width = 1815
End
End
Begin VB.PictureBox PIC
Appearance = 0 'Flat
BackColor = &H00000000&
BorderStyle = 0 'None
FillColor = &H00FFFF80&
FillStyle = 0 'Solid
BeginProperty Font
Name = "Courier New"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFC0&
Height = 3975
Left = 3720
MousePointer = 1 'Arrow
ScaleHeight = 265
ScaleMode = 3 'Pixel
ScaleWidth = 289
TabIndex = 0
Top = 120
Width = 4335
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private N1 As Long
Private N2 As Long
Private WithEvents ZIP As cZipArchive
Attribute ZIP.VB_VarHelpID = -1
Private ZipName As String
Private TargetAllCars As Boolean
Private Sub ChkFollow_Click()
Dim I As Long
DoFollow = ChkFollow = vbChecked
If Not (DoFollow) Then
PanXtoGo = PanX
PanYtoGo = PanY
PIC.MousePointer = 2
Else
PIC.MousePointer = 0
End If
For I = 0 To 3
cmdNAVIGATE(I).Enabled = Not (DoFollow)
Next
End Sub
Private Sub chkShowPath_Click()
ShowPath = chkShowPath = vbChecked
End Sub
Private Sub chkTargetAll_Click()
TargetAllCars = chkTargetAll = vbChecked
End Sub
Private Sub chSave_Click()
DoSaveFrame = (chSave.Value = vbChecked)
End Sub
Private Sub cmdNAVIGATE_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Navigating = True
'' Do
Select Case Index
Case 0
PanZoomChanged = True
PanYtoGo = PanYtoGo - 500 / ZoomToGo
Case 1
PanZoomChanged = True
PanYtoGo = PanYtoGo + 500 / ZoomToGo
Case 2
PanZoomChanged = True
PanXtoGo = PanXtoGo - 500 / ZoomToGo
Case 3
PanZoomChanged = True
PanXtoGo = PanXtoGo + 500 / ZoomToGo
Case 4
PanZoomChanged = True
ZoomToGo = ZoomToGo / 1.2
Case 5
PanZoomChanged = True
ZoomToGo = ZoomToGo * 1.2 '1.2
Case 6
PanZoomChanged = True
ZoomToGo = 1
PanX = CENPanX
PanY = CENPanY
ZoomToGo = PIC.Height / scrMaxY
End Select
' SW.DRAW
' PIC.Refresh
DoEvents
InvZoom = 1 / Zoom
'' Loop While Navigating
'' DRAWCC
'' ' PIC.Refresh
''
'' PIC.Picture = SRF.Picture
'' DoEvents
End Sub
Private Sub cmdNAVIGATE_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Navigating = False
End Sub
Private Sub cmdNextCar_Click()
Follow = Follow Mod Ncars + 1
txtFollow = Follow
End Sub
Private Sub cmdPrevCar_Click()
Follow = Follow - 1: If Follow < 1 Then Follow = Ncars
txtFollow = Follow
End Sub
Private Sub Command1_Click()
Dim I As Long
'ReadOSM (App.Path & "\OSM\chulavista1.osm")
'ReadOSM (App.Path & "\OSM\Tokyo1.osm")
'ReadOSM (App.Path & "\OSM\PalmanovaL.osm")
Command1.Enabled = False
' ReadOSM (App.Path & "\OSM\ny1.osm") '**************************
'ReadOSM (App.Path & "\OSM\roma1.osm")
'ReadOSM (App.Path & "\OSM\Lakeplacid.osm")
'ReadOSM (App.Path & "\OSM\monaco-latest.osm") '''''''''''''''''''''''''''''''''
'ReadOSM (App.Path & "\OSM\isle-of-man-latest.osm")
'ReadOSM (App.Path & "\OSM\malta-latest.osm") ''SLOW
' ReadOSM (App.Path & "\OSM\liechtenstein-latest.osm")
'ReadOSM (App.Path & "\OSM\Firenze.osm")
ReadOSM (App.Path & MAPSsubFolder & File1.FileName)
Dim sgGirdSize&
sgGirdSize = EastOwestMapExtension \ 25
If sgGirdSize > 1000 Then sgGirdSize = 1000
If sgGirdSize < 250 Then sgGirdSize = 250
' GRID.Init EastOwestMapExtension + 1, NorthSouthMapExtension + 1, sgGirdSize
QT.Setup 0, 0, EastOwestMapExtension, NorthSouthMapExtension, 4
PURGEAndSave App.Path & "\Out.txt"
InitDraw
DRAWMAP
PIC.Picture = SRF.Picture
Command3.Enabled = True
CARSSETUP
If Not DoLOOP Then MAINLOOP
End Sub
Private Sub Command2_Click()
' MsgBox (DownloadFile("http://www.vbforums.com/showthread.php?709829-Can-VB6-download-any-kind-of-file&highlight=download+from+url", App.Path & "\Test.osm"))
MsgBox (DownloadFile("http://api.openstreetmap.org/api/0.6/map?bbox=11.8705,45.3903,11.9343,45.4256", App.Path & "\Test.osm"))
End Sub
Private Sub Command3_Click()
'' Dim X As Long
'' Dim Y As Long
'' Dim I As Long
''
''
'' If N1 = 0 Or N2 = 0 Then
''
''
'' Do
'' N1 = 1 + Rnd * NNode
'' Loop While Node(N1).dIsWay = False
'' Do
'' N2 = 1 + Rnd * NNode
'' Loop While Node(N2).dIsWay = False
''
'' End If
''
''
''
''
'' For X = 1 To NNode: Node(X).dCost = 0: Next
'' DRAWCC
'' X = XtoScreen(Node(N1).X)
'' Y = YtoScreen(Node(N1).Y)
'' MyCircle frmMainPIChDC, X, Y, 4, 8, vbMagenta
'' X = XtoScreen(Node(N2).X)
'' Y = YtoScreen(Node(N2).Y)
''
''
''
''
'' MyCircle frmMainPIChDC, X, Y, 4, 8, vbBlue
'' frmMain.PIC.Refresh
'' DoEvents
''
''
''
'' dijPATH = DJ.DIJKSTRA(N1, N2)
''
'' '' If dijPATH.NN <> 0 Then
'' '' X = 0
'' '' Y = 0
'' '' For I = 1 To dijPATH.NN
'' '' X = X + Node(dijPATH.N(I)).X
'' '' Y = Y + Node(dijPATH.N(I)).Y
'' '' Next
'' '' X = X / dijPATH.NN
'' '' Y = Y / dijPATH.NN
'' '' PanX = (PanX + X) * 0.5
'' '' PanY = (PanY + Y) * 0.5
'' '' End If
''
'' DRAW
'' frmMain.PIC.Refresh
'' DoEvents
''
End Sub
Private Sub Command4_Click()
Dim I As Long
''Ncars = 10
''
''ReDim CAR(Ncars)
''
''For I = 1 To Ncars
''CAR(I).RANDOMstart
''CAR(I).RANDOMend
''Next
End Sub
Private Sub File1_Click()
Dim FF As Long
Command1.Enabled = True
FF = FreeFile
Open App.Path & MAPSsubFolder & File1.FileName For Random As FF
lSize = Int((LOF(FF) / 1024) / 1024 * 10) * 0.1 & " Mbytes"
Close FF
End Sub
Private Sub Form_Activate()
If Not (New_c.FSO.FileExists(App.Path & "\ZipsExtracted.txt")) Then
New_c.FSO.WriteTextContent App.Path & "\ZipsExtracted.txt", "0"
End If
If Val(New_c.FSO.ReadTextContent(App.Path & "\ZipsExtracted.txt")) = 0 Then
Set ZIP = New cZipArchive
ZipName = Dir(App.Path & "\MAPS\*.Zip")
Do
ZIP.OpenArchive App.Path & "\MAPS\" & ZipName
ZIP.Extract App.Path & "\MAPS\"
ZipName = Dir
Loop While ZipName <> ""
File1.Refresh
SETPROGRESS "ZIP Maps Extraction complete" & vbCrLf & "Ready to load a Map."
New_c.FSO.WriteTextContent App.Path & "\ZipsExtracted.txt", "1"
End If
End Sub
Private Sub Form_Load()
Randomize Timer
File1.Path = App.Path & MAPSsubFolder
PanZoomChanged = True
If Dir(App.Path & "\Frames", vbDirectory) = vbNullString Then MkDir App.Path & "\Frames"
If Dir(App.Path & "\Frames\*.*") <> vbNullString Then Kill App.Path & "\Frames\*.*"
' Set GRID = New cSpatialGrid
Set QT = New cQuadTree
LoadImages
frmMainPIChDC = frmMain.PIC.hDC
Label1.Caption = "LEFT Click = Select Car" & vbCrLf & _
"RIGHT Click = Set Target" & vbCrLf & _
"MouseWHEEL = ZOOM"
ChkFollow = vbChecked
Call WheelHook(PIC.hwnd)
End Sub
Private Function NearestTo(X As Double, Y As Double, OnlyWays As Boolean) As Long
Dim I As Long
Dim Dmin As Double
Dim DX As Double
Dim DY As Double
Dim D As Double
Dmin = 1E+99
If OnlyWays Then
For I = 1 To NNode
If Node(I).dIsWay Then
DX = Node(I).X - X
DY = Node(I).Y - Y
D = DX * DX + DY * DY
If D < Dmin Then Dmin = D: NearestTo = I
End If
Next
Else
For I = 1 To NNode
DX = Node(I).X - X
DY = Node(I).Y - Y
D = DX * DX + DY * DY
If D < Dmin Then Dmin = D: NearestTo = I
Next
End If
End Function
Private Sub Form_Resize()
'https://stackoverflow.com/questions/70758773/how-to-automatically-resize-or-reposition-controls-on-a-form-when-the-form-is-re
If WindowState = 1 Then Exit Sub
PIC.Height = (frmMain.ScaleHeight \ 128) * 128 ' 1024 '1024 '720
PIC.Width = Int(PIC.Height * 4 / 3 * 1)
PIC.Width = PIC.Width - (PIC.Width Mod 4)
scrMaxX = frmMain.PIC.Width
scrMaxY = frmMain.PIC.Height
CenX = scrMaxX \ 2
CenY = scrMaxY \ 2
Set SRF = Cairo.CreateSurface(scrMaxX, scrMaxY, ImageSurface)
Set CC = SRF.CreateContext
CC.AntiAlias = CAIRO_ANTIALIAS_FAST
CC.SelectFont "Segoe UI", 11, vbWhite
CC.SetLineCap CAIRO_LINE_CAP_ROUND
PIC.Left = Me.ScaleWidth * 0.5 - PIC.Width * 0.5
PIC.Top = 10 'Me.ScaleHeight * 0.5 - PIC.Height * 0.5
picPanel.Top = PIC.Top
picPanel.Left = PIC.Left + PIC.Width + 5
picPanel.Height = PIC.Height
picSTAT.Top = PIC.Top
picSTAT.Height = PIC.Height
picSTAT.Left = PIC.Left - picSTAT.Width - 5
labSTAT.Width = picSTAT.Width - 10
End Sub
Private Sub Form_Unload(Cancel As Integer)
Erase Node
Erase WAY
Erase CAR
Call WheelUnHook(PIC.hwnd)
End
End Sub
Private Sub PIC_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim xx As Double
Dim yy As Double
Dim I&
Dim J&, DX#, DY#
Dim DD#, MDD#
'' XX = xfromScreen(X * 1)
'' YY = yfromScreen(Y * 1)
''
'' If Button = 1 Then
'' N1 = NearestTo(XX * 1, YY * 1)
''
''
'' XX = XtoScreen(Node(N1).X)
'' YY = YtoScreen(Node(N1).Y)
''
'' ElseIf Button = 2 Then
'' N2 = NearestTo(XX * 1, YY * 1)
''
'' XX = XtoScreen(Node(N2).X)
'' YY = YtoScreen(Node(N2).Y)
'' Else
''
'' PanZoomChanged = True
'' PanX = XX
'' PanY = YY
'' DRAW
'' frmMain.PIC.Refresh
'' DoEvents
''
'' End If
''
''
'' 'test funcitons
'' ' xx = XtoScreen(xx * 1)
'' ' yy = YtoScreen(yy * 1)
'' MyCircle frmMainPIChDC, XX * 1, YY * 1, 5, 10, vbRed
'' frmMain.PIC.Refresh
'' DoEvents
xx = xfromScreen(X * 1)
yy = yfromScreen(Y * 1)
If Button = 1 Then 'Set car to Follow
MDD = 1E+99
If DoFollow Then
For I = 1 To Ncars
DX = xx - CAR(I).Xfront
DY = yy - CAR(I).Yfront
DD = DX * DX + DY * DY
If DD < MDD Then MDD = DD: J = I
Next
Follow = J
txtFollow = Follow
Else
J = NearestTo(xx, yy, False)
PanXtoGo = (Node(J).X)
PanYtoGo = (Node(J).Y)
End If
ElseIf Button = 2 Then ' SET TARGET
N1 = NearestTo(xx * 1, yy * 1, True)
CAR(Follow).SetEndNode N1
If CAR(Follow).GetPATHNN = 0 Then CAR(Follow).RANDOMend
If TargetAllCars Then
For I = 1 To Ncars
CAR(I).SetEndNode N1
If CAR(I).GetPATHNN = 0 Then CAR(I).RANDOMend
Next
End If
End If
'MsgBox Button
End Sub
Private Sub Command5_Click() ' CMD LOADPURGED
Dim I As Long
LOADpurged
Dim sgGirdSize&
sgGirdSize = EastOwestMapExtension \ 25
If sgGirdSize > 1000 Then sgGirdSize = 1000
If sgGirdSize < 250 Then sgGirdSize = 250
' GRID.Init EastOwestMapExtension + 1, NorthSouthMapExtension + 1, sgGirdSize
QT.Setup 0, 0, EastOwestMapExtension, NorthSouthMapExtension, 4
InitDraw
'DRAW
'PIC.Refresh
DRAWMAP
PIC.Picture = SRF.Picture
Command3.Enabled = True
CARSSETUP
MAINLOOP
End Sub
' Here you can add scrolling support to controls that don't normally respond
Public Sub MouseWheel(ByVal MouseKeys As Long, ByVal Rotation As Long, ByVal Xpos As Long, ByVal Ypos As Long)
Dim I As Long
'Dim ctl As Control
'For Each ctl In Me.Controls
' If TypeOf ctl Is MSFlexGrid Then
' If IsOver(ctl.hWnd, Xpos, Ypos) Then FlexGridScroll ctl, MouseKeys, Rotation, Xpos, Ypos
' End If
'Next ctl
For I = 1 To Abs(Rotation) * 0.01
If Rotation > 0 Then
ZoomToGo = ZoomToGo * 1.15 '1.18
Else
ZoomToGo = ZoomToGo / 1.15 '1.18
End If
Next
End Sub
Private Sub Picture1_Click()
End Sub
Private Sub ZIP_Progress(ByVal FileIdx As Long, ByVal Current As Long, ByVal Total As Long, Cancel As Boolean)
With ZIP
SETPROGRESS ZipName & vbCrLf & "Extracting: " & .FileInfo(FileIdx)(0) & " " & FileIdx + 1 & "/" & .FileCount, (FileIdx) / .FileCount
DoEvents
End With
End Sub