MapWinGIS:AxMap UDCursorHandle

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

UDCursorHandle

Gets or sets the user defined cursor handle. The handle is a windows cursor handle.

See also http://svn.mapwindow.org/svnroot/MapWindow4Plugins/BalloonIdentifier/Classes/CursorUtils.cs about how to read a cursor file.


VB.NET Usage
Property UDCursorHandle() As Integer

            Parameters

ReturnValue

The user defined cursor handle for the map.

Sample Code

    Private Sub MapCursor()
        Dim cur As New Cursor(Me.GetType, "Cursor.cur")
        'Set the map cursor mode as cmNone
        Map1.CursorMode = MapWinGIS.tkCursorMode.cmNone
        'Set the map cursor as a user defined cursor
        Map1.MapCursor = MapWinGIS.tkCursor.crsrUserDefined
        'Set the user defined cursor handle to the current
        Map1.UDCursorHandle = cur.Handle.ToInt32
    End Sub
  

VB 6 Usage

'
Property UDCursorHandle() As Long

            Parameters

ReturnValue

The user defined cursor handle for the map.

Sample Code

    Private Sub changeMapCursor()
        'Set the map cursor mode as cmNone
        Map1.CursorMode = cmNone
        'Set the map cursor as user defined cursor
        Map1.MapCursor = crsrUserDefined
        'Set the user defined cursor handle to the cursor the user has defined in the resource editor
        Map1.UDCursorHandle = LoadResPicture(101, vbResCursor).handle
    End Sub

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

This page has been accessed 1,923 times. This page was last modified on 11 April 2010, at 14:54.