MapWinGIS:AxMap LockWindow
From MapWindow GIS
LockWindow
Locks the window so that any changes will not be displayed until it is unlocked. This is very useful if you are making a large number of changes at once and don't want the map to be redrawn between each change.
See also tkLockMode
VB.NET Usage
Sub LockWindow(LockMode As MapWinGIS.tkLockMode)
Parameters
|
LockMode | Lock or unlock the map. |
Sample Code
Private Sub LockWindow()
'Lock the map's window while we make multiple changes
Map1.LockWindow(MapWinGIS.tkLockMode.lmLock)
'Draw a bunch of circles, lines, and polygons
DrawCircles()
DrawLines()
DrawPolygons()
'Unlock the map's window to show the changes we've made
Map1.LockWindow(MapWinGIS.tkLockMode.lmUnlock)
End Sub
VB 6 Usage
Sub LockWindow(LockMode As tkLockMode)
Parameters
|
LockMode | Lock or unlock the map. |
Sample Code
Private Sub LockWindow()
'Lock the map's window while we make multiple changes
Map1.LockWindow (lmLock)
'Draw a bunch of circles, lines, and polygons
DrawCircles
DrawLines
DrawPolygons
'Unlock the map's window to show the changes we've made
Map1.LockWindow (lmUnlock)
End Sub
















