Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: Zooming Using Trackbar

$
0
0
thank you very much Don,

but maybe we can use this for the easy solution. :D
Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
    Select Case TrackBar1.Value
        Case 5
            MainMap.ZoomToMaxExtents()

        Case Is > 5
            MainMap.ZoomToMaxExtents()
            MainMap.ZoomIn(TrackBar1.Value / 5 * MainMap.ZoomPercent)

        Case Is < 5
            MainMap.ZoomToMaxExtents()
            MainMap.ZoomOut(5 / TrackBar1.Value * MainMap.ZoomPercent)

            'MainMap.ZoomOut((1 - (TrackBar1.Value / 5)) * MainMap.ZoomPercent)
    End Select
End Sub

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>