MapX+VB 前一视图功能

前端之家收集整理的这篇文章主要介绍了MapX+VB 前一视图功能前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Option Explicit Dim oZoom As Double Dim oMapX As Double Dim oMapY As Double Dim Zoom As Double Dim MapX As Double Dim MapY As Double Private Sub Form_Load() cmdPreOrNextView.Caption = "前一视图" End Sub Private Sub cmdPreOrNextView_Click() Map1.ZoomTo oZoom,oMapX,oMapY If cmdPreOrNextView.Caption = "前一视图" Then cmdPreOrNextView.Caption = "后一视图" Else cmdPreOrNextView.Caption = "前一视图" End If End Sub Private Sub Map1_MapViewChanged() oZoom = Zoom oMapX = MapX oMapY = MapY Zoom = Map1.Zoom MapX = Map1.CenterX MapY = Map1.CenterY End Sub

原文链接:https://www.f2er.com/vb/261801.html

猜你在找的VB相关文章