Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


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


Source position: controls.pp line 1774

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


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 ar 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



Changes the cursor shape temporarily, preserving the original TControl.Cursor



The cursor shape shown while the control is dragged.



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



Gets the value for the Cursor property taking temporary cursors into account.

CT Web help

CodeTyphon Studio