Share

InteractionEvents.SetCursor Method

Parent Object: InteractionEvents

Description

Sets the cursor for the command in which this interaction takes place.

Syntax

InteractionEvents.SetCursor( CursorType As CursorTypeEnum, [Cursor] As Variant, [CursorHotSpot] As Variant )

Parameters

Name Type Description
CursorType CursorTypeEnum Specify the CursorTypeEnum indicating the cursor type.
Cursor Variant Input the cursor. 

When the CursorType is specified as kCursorTypeCustom, this is required to be set as String indicating a cursor file(.cur, .ani) name or IPictureDisp object(32x32 pixels). If the CursorType is specified as kCursorTypeWindows, this is required to be set as Long indicating the Windows cursor ID, below table shows the map between the Long value and Windows cursor ID:                                                                                                                                                                              
Long valueWindows Cursor Id
0IDC_ARROW
1IDC_ARROW
2IDC_CROSS
3IDC_IBEAM
4IDC_ARROW
5IDC_SIZEALL
6IDC_SIZENESW
7IDC_SIZENS
8IDC_SIZENWSE
9IDC_SIZEWE
10IDC_UPARROW
11IDC_WAIT
12IDC_NO
13IDC_WAIT
14IDC_HELP
15IDC_SIZEALL


This is an optional argument whose default value is null.
CursorHotSpot Variant Specify the CursorHotSpotEnum indicating the hotspot location relative to the cursor.

This is an optional argument whose default value is null.

Version

Introduced in version 9

Was this information helpful?