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

# TControl.Cursor

Contains the shape for the mouse pointer when the mouse is over the control.

## Declaration

Source position: controls.pp line 1841

`published property TControl.Cursor : TCursor read GetCursor write SetCursor default crDefault;`

## Description

Cursor is a TCursor property with the cursor shape displayed when the mouse pointer is hovered over the control. The default value for the property is crDefault.

Changing the value for the property causes a CM_CURSORCHANGED message to be performed to update the control. The value is applied at run-time when the CMCursorChanged method handles the control message.

Use SetTempCursor to display a temporary cursor shape when an action is in progress for the control.

## See also

TControl.SetTempCursor |  | Changes the cursor shape temporarily, preserving the original TControl.Cursor
TControl.DragCursor |  | The cursor shape shown during a drag operation.
TScreen.Cursors |  | Provides indexed access to the available mouse cursor shapes for the screen.
TScreen.RealCursor |  | Gets the value for the Cursor property taking temporary cursors into account.