Link Search Menu Expand Document

SSpread.CursorStyle Property

Sets the shape of the mouse cursor to be used.

Specify the following values. The initial value is $CursorStyleDefault.

Constant Value Description
$CursorStyleUserDefined 0 User-defined icon (cursor specified by CursorIcon property)
$CursorStyleDefault 1 Spreadsheet standard cursor (cross-shaped cursor)
$CursorStyleArrow 2 Windows standard arrow cursor
$CursorStyleDefColResize 3 Standard column resizing cursor
$CursorStyleDefRowResize 4 Standard row resizing cursor

Before setting this property, set the CursorType property to select what you want to change the mouse cursor to.

To specify $CursorStyleUserDefined (user-defined), first specify the cursor file with the CursorIcon property.

If the DisplayObject.SetCursor method sets a mouse cursor on the entire SSpread object or the parent Form object, that mouse cursor takes precedence and the cursor set with this property is temporarily disabled. If it is canceled by the DisplayObject.ResetCursor method, it returns to the cursor set by this property.

Example of usage

CursorType = $ CursorTypeDefault;
CursorStyle = $ CursorStyleArrow;
 
CursorIcon = "lock.ani";
CursorType = $ CursorTypeLockedCell;
CursorStyle = $ CursorStyleUserDefined;

Related items
CursorIcon, CursorType property
DisplayObject.SetCursor, DisplayObject.ResetCursor method