[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TScreen.Cursors

Provides indexed access to the available mouse cursor shapes for the screen.

## Declaration

Source position: forms.pp line 1274

`public property TScreen.Cursors[Index: Integer] : HCURSOR read GetCursors write SetCursors;`

## Description

Cursors is an indexed HCURSOR property which provides access to the handle for a mouse cursor shape by its numeric value. The cursor constants (like crHourGlass) defined in the controls.pp unit can be used instead of the numeric value.

Cursors uses an internal TMap instance to store the handle values and provides access using the index values. When the value for the property is read, CreateStandardCursor in the widgetset class is called to retrieve the handle. If it has not been assigned, a temporary TCursorImage is created for the cursor resource and its handle is added to the internal map.

Setting a new value for the indexed property causes an existing handle in the internal map to be re-created.

## See also

TScreen.Cursor |  | Indicates the current mouse cursor shape.
TScreen.RealCursor |  | Gets the value for the Cursor property taking temporary cursors into account.
TScreen.Cursors |  | Provides indexed access to the available mouse cursor shapes for the screen.