MapWinGIS:AxMap IsLocked

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

IsLocked

Checks to see if the map is currently locked or not.
See also tkLockMode


VB.NET Usage

Property IsLocked() As MapWinGIS.tkLockMode

            Parameters

ReturnValue

The current lock mode of the map. (Lock modes: lmLock, lmUnlock.)

Sample Code

    Private Sub MapLockCheck()
        'Check to see if the map is currently locked
        If Map1.IsLocked = MapWinGIS.tkLockMode.lmLock Then
            'If the map lock mode is lmLock, display message box telling user map is locked
            MsgBox("The map is locked.")
        Else
            'If the map lock mode is lmUnlock, display message box telling user map is unlocked
            MsgBox("The map is unlocked.")
        End If
    End Sub
  

VB 6 Usage
Property IsLocked() As tkLockMode
            Parameters

ReturnValue

The current lock mode of the map. (Lock modes: lmLock, lmUnlock.)

Sample Code

    Private Sub MapLockCheck()
        'Check to see if the map is currently locked
        If Map1.IsLocked = lmLock Then
            'If the map lock mode is lmLock, display message box telling user map is locked
            MsgBox ("The map is locked.")
        Else
            'If the map lock mode is lmUnlock, display message box telling user map is unlocked
            MsgBox ("The map is unlocked.")
        End If
    End Sub

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

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