Download MapOCX Pro v7.1 - UnderTow Software, Inc.

Transcript
'
'
'
'
Demonstrates DirectDraw Scaled.
DirDrawFrm contains a PictureBox called DirDrawPic
The Map aspect ratio is maintained to prevent
distortion.
DirDrawFrm.Show
DirDrawFrm.Caption = "Direct Draw Scaled "
DirDrawFrm.DirDrawPic.Width = MapPro1.Width \ 4
DirDrawFrm.DirDrawPic.Height = MapPro1.Height \ 4
With DirDrawFrm
Call MapPro1.DirectDraw(.DirDrawPic.hdc, 0, 0, .DirDrawPic.Width,
.DirDrawPic.Height, True,
True, False)
End With
End Sub
Private Sub GotoBtn_Click()
Dim Lon, Lat
Lon = -83.436
Lat = 42.732
Call MapPro1.GotoPoint(Lon, Lat)
End Sub
Private Sub ZoomWin_Click()
Dim X1, X2, Y1, Y2 As Variant
X1 =
Y1 =
X2 =
Y2 =
Call
End Sub
-88
41.56
-88.01
41.575
MapPro1.Zoomwindow(X1, Y1, X2, Y2)
261