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

TControl.Cursor

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

Declaration

Source position: controls.pp line 1774

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

TControl.SetTempCursor

  

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

TControl.DragCursor

  

The cursor shape shown while the control is dragged.

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.



CT Web help

CodeTyphon Studio