MapWinGIS:AxMap LockWindow

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:AxMap_LockWindow"

This page has been accessed 1,833 times. This page was last modified on 9 November 2005, at 18:42.